[PATCH] D21799: [ASTMatchers] Add missing forEachArgumentWithParam() to code sample
Martin Böhme via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 28 09:07:30 PDT 2016
mboehme created this revision.
mboehme added a reviewer: klimek.
mboehme added a subscriber: cfe-commits.
Herald added a subscriber: klimek.
http://reviews.llvm.org/D21799
Files:
include/clang/ASTMatchers/ASTMatchers.h
Index: include/clang/ASTMatchers/ASTMatchers.h
===================================================================
--- include/clang/ASTMatchers/ASTMatchers.h
+++ include/clang/ASTMatchers/ASTMatchers.h
@@ -3154,8 +3154,11 @@
/// int y;
/// f(y);
/// \endcode
-/// callExpr(declRefExpr(to(varDecl(hasName("y")))),
-/// parmVarDecl(hasType(isInteger())))
+/// callExpr(
+/// forEachArgumentWithParam(
+/// declRefExpr(to(varDecl(hasName("y")))),
+/// parmVarDecl(hasType(isInteger()))
+/// ))
/// matches f(y);
/// with declRefExpr(...)
/// matching int y
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21799.62103.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160628/0257232b/attachment.bin>
More information about the cfe-commits
mailing list