diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -542,6 +542,24 @@ + +

Convenience Matchers

+ + +

Several matchers are only for convenience, in that they allow matching of +nodes which can be done in other, more verbose ways.

+ +
+
optionally(...)
+
Equivalent to anyOf(..., anything()).
+
mapAnyOf(...).with(...)
+
A builder type for convenience matchers. Allows mapping matchers into specified node matchers without repetition. This makes mapAnyOf(ifStmt, forStmt).with(hasCondition(expr())) an equivalent to anyOf(ifStmt(hasCondition(expr())), forStmt(hasCondition(expr()))).
+
binaryOperation(...)
+
Convenience for mapAnyOf(binaryOperator(...), cxxOperatorCallExpr(...), cxxRewrittenBinaryOperator(...)).
+
invocation(...)
+
Convenience for mapAnyOf(callExpr(...), cxxConstructorExpr(...)). Primarily useful for matching arguments to either kind of node.
+
+

Node Matchers