Skip to content

Commit fe4328c

Browse files
committed
fix empty enum decl
1 parent 82564f2 commit fe4328c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

clang/include/clang/ASTMatchers/ASTMatchers.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8027,11 +8027,11 @@ AST_MATCHER_P(ImplicitCastExpr, hasImplicitDestinationType,
80278027
/// struct S;
80288028
/// class C;
80298029
/// union U;
8030-
/// enum E;
8030+
/// enum E {};
80318031
/// \endcode
80328032
/// \compile_args{-std=c++}
80338033
/// The matcher \matcher{tagDecl(isStruct())} matches \match{struct S},
8034-
/// but does not match \nomatch{class C}, \nomatch{union U} or \nomatch{enum E}.
8034+
/// but does not match \nomatch{class C}, \nomatch{union U} or \nomatch{enum E {}}.
80358035
AST_MATCHER(TagDecl, isStruct) {
80368036
return Node.isStruct();
80378037
}
@@ -8043,11 +8043,11 @@ AST_MATCHER(TagDecl, isStruct) {
80438043
/// struct S;
80448044
/// class C;
80458045
/// union U;
8046-
/// enum E;
8046+
/// enum E {};
80478047
/// \endcode
80488048
/// \compile_args{-std=c++}
80498049
/// The matcher \matcher{tagDecl(isUnion())} matches \match{union U}, but does
8050-
/// not match \nomatch{struct S}, \nomatch{class C} or \nomatch{enum E}.
8050+
/// not match \nomatch{struct S}, \nomatch{class C} or \nomatch{enum E {}}.
80518051
AST_MATCHER(TagDecl, isUnion) {
80528052
return Node.isUnion();
80538053
}
@@ -8059,11 +8059,11 @@ AST_MATCHER(TagDecl, isUnion) {
80598059
/// struct S;
80608060
/// class C;
80618061
/// union U;
8062-
/// enum E;
8062+
/// enum E {};
80638063
/// \endcode
80648064
/// \compile_args{-std=c++}
80658065
/// The matcher \matcher{tagDecl(isClass())} matches \match{class C}, but does
8066-
/// not match \nomatch{struct S}, \nomatch{union U} or \nomatch{enum E}.
8066+
/// not match \nomatch{struct S}, \nomatch{union U} or \nomatch{enum E {}}.
80678067
AST_MATCHER(TagDecl, isClass) {
80688068
return Node.isClass();
80698069
}
@@ -8075,10 +8075,10 @@ AST_MATCHER(TagDecl, isClass) {
80758075
/// struct S;
80768076
/// class C;
80778077
/// union U;
8078-
/// enum E;
8078+
/// enum E {};
80798079
/// \endcode
80808080
/// \compile_args{-std=c++}
8081-
/// The matcher \matcher{tagDecl(isEnum())} matches \match{enum E}, but does not
8081+
/// The matcher \matcher{tagDecl(isEnum())} matches \match{enum E {}}, but does not
80828082
/// match \nomatch{struct S}, \nomatch{class C} or \nomatch{union U}.
80838083
AST_MATCHER(TagDecl, isEnum) {
80848084
return Node.isEnum();

0 commit comments

Comments
 (0)