From 9c3be3a4e58a70f9f625ec535d6552fe699d4b29 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Thu, 18 Jan 2018 09:47:57 +0000 Subject: [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 --- clang/docs/LibASTMatchersReference.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'clang/docs') 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) +Matcher<EnumDecl>isScoped +
Matches C++11 scoped enum declaration.
+
+Example matches Y (matcher = enumDecl(isScoped()))
+enum X {};
+enum class Y {};
+
+ + Matcher<FieldDecl>hasBitWidthunsigned Width
Matches non-static data members that are bit-fields of the specified
 bit width.
-- 
cgit v1.2.3