diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h index 64cd86353d2b8c..d7ff6c5f14a29f 100644 --- a/clang/include/clang/ASTMatchers/ASTMatchers.h +++ b/clang/include/clang/ASTMatchers/ASTMatchers.h @@ -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(); } @@ -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(); } @@ -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(); } @@ -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();