Skip to content

Commit 0e0c24f

Browse files
committed
fix formatting
1 parent 9ef9cb0 commit 0e0c24f

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

clang/include/clang/ASTMatchers/ASTMatchers.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8031,7 +8031,8 @@ AST_MATCHER_P(ImplicitCastExpr, hasImplicitDestinationType,
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
8035+
/// \nomatch{enum E {}}.
80358036
AST_MATCHER(TagDecl, isStruct) {
80368037
return Node.isStruct();
80378038
}
@@ -8046,8 +8047,9 @@ AST_MATCHER(TagDecl, isStruct) {
80468047
/// enum E {};
80478048
/// \endcode
80488049
/// \compile_args{-std=c++}
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+
/// The matcher \matcher{tagDecl(isUnion())} matches \match{union U},
8051+
/// but does not match \nomatch{struct S}, \nomatch{class C} or
8052+
/// \nomatch{enum E {}}.
80518053
AST_MATCHER(TagDecl, isUnion) {
80528054
return Node.isUnion();
80538055
}
@@ -8062,8 +8064,9 @@ AST_MATCHER(TagDecl, isUnion) {
80628064
/// enum E {};
80638065
/// \endcode
80648066
/// \compile_args{-std=c++}
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 {}}.
8067+
/// The matcher \matcher{tagDecl(isClass())} matches \match{class C},
8068+
/// but does not match \nomatch{struct S}, \nomatch{union U} or
8069+
/// \nomatch{enum E {}}.
80678070
AST_MATCHER(TagDecl, isClass) {
80688071
return Node.isClass();
80698072
}

clang/utils/generate_ast_matcher_doc_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ def build_test_case(self):
709709
res += "\n#endif\n"
710710
return res
711711

712+
712713
class ParsingContext(Enum):
713714
NoneCtx = 0
714715
Code = 1

0 commit comments

Comments
 (0)