Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e667b9 commit 4276d1fCopy full SHA for 4276d1f
3 files changed
cpp/ql/src/semmle/code/cpp/PrintAST.qll
@@ -182,6 +182,10 @@ class PrintASTNode extends TPrintASTNode {
182
result = childIndex.toString()
183
}
184
185
+ /**
186
+ * Gets the QL predicate that can be used to access the child at `childIndex`.
187
+ * May not hold for all children, see for example `FunctionNode`.
188
+ */
189
abstract string getChildAccessorPredicate(int childIndex);
190
191
/**
@@ -616,7 +620,7 @@ class ArrayAggregateLiteralNode extends ExprNode {
616
620
617
621
618
622
619
-string getChildAccessor(Locatable parent, Element child) {
623
+private string getChildAccessor(Locatable parent, Element child) {
624
shouldPrintFunction(getEnclosingFunction(parent)) and
625
(
626
exists(Stmt s | s = parent.(Stmt) |
0 commit comments