summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2018-01-18 09:47:57 +0000
committerHaojian Wu <hokein@google.com>2018-01-18 09:47:57 +0000
commit9c3be3a4e58a70f9f625ec535d6552fe699d4b29 (patch)
tree2793531dad729651621cd3f070aa076dc75cd542 /clang/docs
parentd3263aa1dfbf6277b56df46ce8f8972ee11dbc4d (diff)
downloadbcm5719-llvm-9c3be3a4e58a70f9f625ec535d6552fe699d4b29.tar.gz
bcm5719-llvm-9c3be3a4e58a70f9f625ec535d6552fe699d4b29.zip
[ASTMatcher] Add isScoped matcher for enumDecl.
Summary: Reviewers: bkramer, aaron.ballman Subscribers: aaron.ballman, cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D42185 llvm-svn: 322826
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/LibASTMatchersReference.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html
index 8e41489e1b6..95d95546ffd 100644
--- a/clang/docs/LibASTMatchersReference.html
+++ b/clang/docs/LibASTMatchersReference.html
@@ -2644,6 +2644,15 @@ designatorCountIs(2)
</pre></td></tr>
+<tr><td>Matcher&lt;<a href="http://clang.llvm.org/doxygen/classclang_1_1EnumDecl.html">EnumDecl</a>&gt;</td><td class="name" onclick="toggle('isScoped0')"><a name="isScoped0Anchor">isScoped</a></td><td></td></tr>
+<tr><td colspan="4" class="doc" id="isScoped0"><pre>Matches C++11 scoped enum declaration.
+
+Example matches Y (matcher = enumDecl(isScoped()))
+enum X {};
+enum class Y {};
+</pre></td></tr>
+
+
<tr><td>Matcher&lt;<a href="http://clang.llvm.org/doxygen/classclang_1_1FieldDecl.html">FieldDecl</a>&gt;</td><td class="name" onclick="toggle('hasBitWidth0')"><a name="hasBitWidth0Anchor">hasBitWidth</a></td><td>unsigned Width</td></tr>
<tr><td colspan="4" class="doc" id="hasBitWidth0"><pre>Matches non-static data members that are bit-fields of the specified
bit width.
OpenPOWER on IntegriCloud