Skip to content

Commit 9a1f909

Browse files
committed
C++: Fix QLDoc for PrintAST.qll nodes/edges
1 parent b3072b9 commit 9a1f909

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -528,16 +528,16 @@ class ArrayAggregateLiteralNode extends ExprNode {
528528
}
529529
}
530530

531-
/**
532-
* Holds if `node` is printed in the PrintAST output tree and has the property `key` with the
533-
* value `value`.
534-
*/
531+
/** Holds if `node` belongs to the output tree, and its property `key` has the given `value`. */
535532
query predicate nodes(PrintASTNode node, string key, string value) {
536533
node.shouldPrint() and
537534
value = node.getProperty(key)
538535
}
539536

540-
/** Holds if `node` belongs to the output tree, and its property `key` has the given `value`. */
537+
/**
538+
* Holds if `target` is a child of `source` in the AST, and property `key` of the edge has the
539+
* given `value`.
540+
*/
541541
query predicate edges(PrintASTNode source, PrintASTNode target, string key, string value) {
542542
exists(int childIndex |
543543
source.shouldPrint() and

0 commit comments

Comments
 (0)