Skip to content

Commit

Permalink
fix empty enum decl
Browse files Browse the repository at this point in the history
  • Loading branch information
5chmidti committed Jul 12, 2024
1 parent 15d2846 commit ad11a89
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions clang/include/clang/ASTMatchers/ASTMatchers.h
Original file line number Diff line number Diff line change
Expand Up @@ -8027,11 +8027,11 @@ AST_MATCHER_P(ImplicitCastExpr, hasImplicitDestinationType,
/// struct S;
/// class C;
/// union U;
/// enum E;
/// enum E {};
/// \endcode
/// \compile_args{-std=c++}
/// The matcher \matcher{tagDecl(isStruct())} matches \match{struct S},
/// but does not match \nomatch{class C}, \nomatch{union U} or \nomatch{enum E}.
/// but does not match \nomatch{class C}, \nomatch{union U} or \nomatch{enum E {}}.
AST_MATCHER(TagDecl, isStruct) {
return Node.isStruct();
}
Expand All @@ -8043,11 +8043,11 @@ AST_MATCHER(TagDecl, isStruct) {
/// struct S;
/// class C;
/// union U;
/// enum E;
/// enum E {};
/// \endcode
/// \compile_args{-std=c++}
/// The matcher \matcher{tagDecl(isUnion())} matches \match{union U}, but does
/// not match \nomatch{struct S}, \nomatch{class C} or \nomatch{enum E}.
/// not match \nomatch{struct S}, \nomatch{class C} or \nomatch{enum E {}}.
AST_MATCHER(TagDecl, isUnion) {
return Node.isUnion();
}
Expand All @@ -8059,11 +8059,11 @@ AST_MATCHER(TagDecl, isUnion) {
/// struct S;
/// class C;
/// union U;
/// enum E;
/// enum E {};
/// \endcode
/// \compile_args{-std=c++}
/// The matcher \matcher{tagDecl(isClass())} matches \match{class C}, but does
/// not match \nomatch{struct S}, \nomatch{union U} or \nomatch{enum E}.
/// not match \nomatch{struct S}, \nomatch{union U} or \nomatch{enum E {}}.
AST_MATCHER(TagDecl, isClass) {
return Node.isClass();
}
Expand All @@ -8075,10 +8075,10 @@ AST_MATCHER(TagDecl, isClass) {
/// struct S;
/// class C;
/// union U;
/// enum E;
/// enum E {};
/// \endcode
/// \compile_args{-std=c++}
/// The matcher \matcher{tagDecl(isEnum())} matches \match{enum E}, but does not
/// The matcher \matcher{tagDecl(isEnum())} matches \match{enum E {}}, but does not
/// match \nomatch{struct S}, \nomatch{class C} or \nomatch{union U}.
AST_MATCHER(TagDecl, isEnum) {
return Node.isEnum();
Expand Down

0 comments on commit ad11a89

Please sign in to comment.