diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2017-11-29 21:21:51 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2017-11-29 21:21:51 +0000 |
| commit | 813e36c2c1ebbc0cae4c13efb98418c77801913c (patch) | |
| tree | e7a4efc5eac20fea4520b0897583a1875e4cf459 /clang/docs | |
| parent | ca9c2b290cbe12497382954003f3386baa2cdb74 (diff) | |
| download | bcm5719-llvm-813e36c2c1ebbc0cae4c13efb98418c77801913c.tar.gz bcm5719-llvm-813e36c2c1ebbc0cae4c13efb98418c77801913c.zip | |
Add the hasDefinition() AST matcher to match class declarations that also have a definition.
Patch by Julie Hockett.
llvm-svn: 319360
Diffstat (limited to 'clang/docs')
| -rw-r--r-- | clang/docs/LibASTMatchersReference.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index bcd236adf5d..ed1ec193d8d 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -2307,6 +2307,15 @@ Usable as: Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1CXXOp </pre></td></tr> +<tr><td>Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1CXXRecordDecl.html">CXXRecordDecl</a>></td><td class="name" onclick="toggle('hasDefinition0')"><a name="hasDefinition0Anchor">hasDefinition</a></td><td></td></tr> +<tr><td colspan="4" class="doc" id="hasDefinition0"><pre>Matches a class declaration that is defined. + +Example matches x (matcher = cxxRecordDecl(hasDefinition())) +class x {}; +class y; +</pre></td></tr> + + <tr><td>Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1CXXRecordDecl.html">CXXRecordDecl</a>></td><td class="name" onclick="toggle('isDerivedFrom1')"><a name="isDerivedFrom1Anchor">isDerivedFrom</a></td><td>std::string BaseName</td></tr> <tr><td colspan="4" class="doc" id="isDerivedFrom1"><pre>Overloaded method as shortcut for isDerivedFrom(hasName(...)). </pre></td></tr> |

