Skip to content

Commit 7e667b9

Browse files
committed
C++: Add comment to FunctionNode.
1 parent 668764c commit 7e667b9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cpp/ql/src/semmle/code/cpp/PrintAST.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,8 @@ class FunctionNode extends ASTNode {
546546
}
547547

548548
override string getChildAccessorPredicate(int childIndex) {
549+
// all other children of this node are not reachable via the AST `getChild` relation
550+
// or other getters. Thus, this predicate does not hold for them.
549551
childIndex = 2 and
550552
result = "getEntryPoint()"
551553
}

0 commit comments

Comments
 (0)