diff options
author | Haojian Wu <hokein@google.com> | 2018-01-18 09:47:57 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2018-01-18 09:47:57 +0000 |
commit | a842b5f965a003448c860bf811d69bf91a844b05 (patch) | |
tree | 7d3317e4ebfc9650af5bd76969d8a297eeda92a0 /docs/LibASTMatchersReference.html | |
parent | 217babe38c52a5449b0c1fd8b13a1719d6dec006 (diff) |
[ASTMatcher] Add isScoped matcher for enumDecl.
Summary:
Reviewers: bkramer, aaron.ballman
Subscribers: aaron.ballman, cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D42185
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LibASTMatchersReference.html')
-rw-r--r-- | docs/LibASTMatchersReference.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/LibASTMatchersReference.html b/docs/LibASTMatchersReference.html index 8e41489e1b..95d95546ff 100644 --- a/docs/LibASTMatchersReference.html +++ b/docs/LibASTMatchersReference.html @@ -2644,6 +2644,15 @@ designatorCountIs(2) </pre></td></tr> +<tr><td>Matcher<<a href="http://clang.llvm.org/doxygen/classclang_1_1EnumDecl.html">EnumDecl</a>></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<<a href="http://clang.llvm.org/doxygen/classclang_1_1FieldDecl.html">FieldDecl</a>></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. |