diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2016-01-18 20:37:44 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2016-01-18 20:37:44 +0000 |
commit | eb85b04c7eccad93706d7e7e319a34597f521ac6 (patch) | |
tree | 56b9aa57cf8c7ed6c72a3820cb4eb4e17eed8d99 /clang/docs/LibASTMatchersReference.html | |
parent | 5e46adb09a6aac616e3b469d3bb6682fa4160d2b (diff) | |
download | bcm5719-llvm-eb85b04c7eccad93706d7e7e319a34597f521ac6.tar.gz bcm5719-llvm-eb85b04c7eccad93706d7e7e319a34597f521ac6.zip |
Add an AST matcher for checking whether a function is defaulted.
Patch by Jonathan Coe.
llvm-svn: 258072
Diffstat (limited to 'clang/docs/LibASTMatchersReference.html')
-rw-r--r-- | clang/docs/LibASTMatchersReference.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index d452c783a80..7f212620b18 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -2184,6 +2184,17 @@ Usable as: Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1TagDec </pre></td></tr> +<tr><td>Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1FunctionDecl.html">FunctionDecl</a>></td><td class="name" onclick="toggle('isDefaulted0')"><a name="isDefaulted0Anchor">isDefaulted</a></td><td></td></tr> +<tr><td colspan="4" class="doc" id="isDefaulted0"><pre>Matches defaulted function declarations. + +Given: + class A { ~A(); }; + class B { ~B() = default; }; +functionDecl(isDefaulted()) + matches the declaration of ~B, but not ~A. +</pre></td></tr> + + <tr><td>Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1FunctionDecl.html">FunctionDecl</a>></td><td class="name" onclick="toggle('isDeleted0')"><a name="isDeleted0Anchor">isDeleted</a></td><td></td></tr> <tr><td colspan="4" class="doc" id="isDeleted0"><pre>Matches deleted function declarations. |