diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-08-04 10:02:03 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-08-04 10:02:03 +0000 |
commit | 87e6d99487ddd7ba4bdc582600f0dfc2ef271ae7 (patch) | |
tree | 4706cb0f98ec8af0e1cb94c61d17f458e15048a7 /clang/docs/LibASTMatchersReference.html | |
parent | 54a54869186ec39694e99300644cd0d3d048a965 (diff) | |
download | bcm5719-llvm-87e6d99487ddd7ba4bdc582600f0dfc2ef271ae7.tar.gz bcm5719-llvm-87e6d99487ddd7ba4bdc582600f0dfc2ef271ae7.zip |
Make isExternC work on VarDecls too.
llvm-svn: 277712
Diffstat (limited to 'clang/docs/LibASTMatchersReference.html')
-rw-r--r-- | clang/docs/LibASTMatchersReference.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index 35534cb8c84..02af5d578f6 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -3441,6 +3441,18 @@ Usable as: Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1Funct </pre></td></tr> +<tr><td>Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1VarDecl.html">VarDecl</a>></td><td class="name" onclick="toggle('isExternC1')"><a name="isExternC1Anchor">isExternC</a></td><td></td></tr> +<tr><td colspan="4" class="doc" id="isExternC1"><pre>Matches extern "C" function declarations. + +Given: + extern "C" void f() {} + extern "C" { void g() {} } + void h() {} +functionDecl(isExternC()) + matches the declaration of f and g, but not the declaration h +</pre></td></tr> + + <tr><td>Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1VarDecl.html">VarDecl</a>></td><td class="name" onclick="toggle('isTemplateInstantiation1')"><a name="isTemplateInstantiation1Anchor">isTemplateInstantiation</a></td><td></td></tr> <tr><td colspan="4" class="doc" id="isTemplateInstantiation1"><pre>Matches template instantiations of function, class, or static member variable template instantiations. |