@@ -8027,11 +8027,11 @@ AST_MATCHER_P(ImplicitCastExpr, hasImplicitDestinationType,
8027
8027
// / struct S;
8028
8028
// / class C;
8029
8029
// / union U;
8030
- // / enum E;
8030
+ // / enum E {} ;
8031
8031
// / \endcode
8032
8032
// / \compile_args{-std=c++}
8033
8033
// / 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 {} }.
8035
8035
AST_MATCHER (TagDecl, isStruct) {
8036
8036
return Node.isStruct ();
8037
8037
}
@@ -8043,11 +8043,11 @@ AST_MATCHER(TagDecl, isStruct) {
8043
8043
// / struct S;
8044
8044
// / class C;
8045
8045
// / union U;
8046
- // / enum E;
8046
+ // / enum E {} ;
8047
8047
// / \endcode
8048
8048
// / \compile_args{-std=c++}
8049
8049
// / 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 {} }.
8051
8051
AST_MATCHER (TagDecl, isUnion) {
8052
8052
return Node.isUnion ();
8053
8053
}
@@ -8059,11 +8059,11 @@ AST_MATCHER(TagDecl, isUnion) {
8059
8059
// / struct S;
8060
8060
// / class C;
8061
8061
// / union U;
8062
- // / enum E;
8062
+ // / enum E {} ;
8063
8063
// / \endcode
8064
8064
// / \compile_args{-std=c++}
8065
8065
// / 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 {} }.
8067
8067
AST_MATCHER (TagDecl, isClass) {
8068
8068
return Node.isClass ();
8069
8069
}
@@ -8075,10 +8075,10 @@ AST_MATCHER(TagDecl, isClass) {
8075
8075
// / struct S;
8076
8076
// / class C;
8077
8077
// / union U;
8078
- // / enum E;
8078
+ // / enum E {} ;
8079
8079
// / \endcode
8080
8080
// / \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
8082
8082
// / match \nomatch{struct S}, \nomatch{class C} or \nomatch{union U}.
8083
8083
AST_MATCHER (TagDecl, isEnum) {
8084
8084
return Node.isEnum ();
0 commit comments