summaryrefslogtreecommitdiffstats
path: root/clang/docs/LibASTMatchersReference.html
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2016-01-18 20:37:44 +0000
committerAaron Ballman <aaron@aaronballman.com>2016-01-18 20:37:44 +0000
commiteb85b04c7eccad93706d7e7e319a34597f521ac6 (patch)
tree56b9aa57cf8c7ed6c72a3820cb4eb4e17eed8d99 /clang/docs/LibASTMatchersReference.html
parent5e46adb09a6aac616e3b469d3bb6682fa4160d2b (diff)
downloadbcm5719-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.html11
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&lt<a href="http://clang.llvm.org/doxygen/classclang_1_1TagDec
</pre></td></tr>
+<tr><td>Matcher&lt<a href="http://clang.llvm.org/doxygen/classclang_1_1FunctionDecl.html">FunctionDecl</a>&gt;</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&lt<a href="http://clang.llvm.org/doxygen/classclang_1_1FunctionDecl.html">FunctionDecl</a>&gt;</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.
OpenPOWER on IntegriCloud