[PATCH] D21799: [ASTMatchers] Add missing forEachArgumentWithParam() to code sample
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 8 03:58:19 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL274835: [ASTMatchers] Add missing forEachArgumentWithParam() to code sample (authored by alexfh).
Changed prior to commit:
http://reviews.llvm.org/D21799?vs=62103&id=63196#toc
Repository:
rL LLVM
http://reviews.llvm.org/D21799
Files:
cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h
Index: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h
===================================================================
--- cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h
+++ cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h
@@ -3186,8 +3186,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.63196.patch
Type: text/x-patch
Size: 609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160708/ef8f4ec0/attachment-0001.bin>
More information about the cfe-commits
mailing list