Skip to content

Commit 52d1016

Browse files
committed
clang-format
1 parent 59eea5d commit 52d1016

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

clang/include/clang/Basic/DiagnosticCommonKinds.td

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ def err_attribute_not_type_attr : Error<
130130
"%0%select{ attribute|}1 cannot be applied to types">;
131131
def err_enum_template : Error<"enumeration cannot be a template">;
132132

133-
def warn_cxx20_compat_consteval : Warning<
134-
"'consteval' specifier is incompatible with C++ standards before C++20">,
135-
InGroup<CXXPre20Compat>, DefaultIgnore;
133+
def warn_cxx20_compat_consteval
134+
: Warning<"'consteval' specifier is incompatible with C++ standards before "
135+
"C++20">,
136+
InGroup<CXXPre20Compat>,
137+
DefaultIgnore;
136138
def warn_missing_type_specifier : Warning<
137139
"type specifier missing, defaults to 'int'">,
138140
InGroup<ImplicitInt>, DefaultIgnore;

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ defm adl_only_template_id : CXX20Compat<
5151
"with explicit template arguments is">;
5252
defm ctad_for_alias_templates
5353
: CXX20Compat<"class template argument deduction for alias templates is">;
54-
defm implicit_typename : CXX20Compat<
55-
"missing 'typename' prior to dependent type name %0 is">;
54+
defm implicit_typename
55+
: CXX20Compat<"missing 'typename' prior to dependent type name %0 is">;
5656

5757
// C++23 compatibility with C++20 and earlier.
5858
defm constexpr_static_var : CXX23Compat<
@@ -5869,8 +5869,8 @@ def ext_typename_missing
58695869
def err_typename_refers_to_using_value_decl : Error<
58705870
"typename specifier refers to a dependent using declaration for a value "
58715871
"%0 in %1">;
5872-
def note_using_value_decl_missing_typename : Note<
5873-
"add 'typename' to treat this using declaration as a type">;
5872+
def note_using_value_decl_missing_typename
5873+
: Note<"add 'typename' to treat this using declaration as a type">;
58745874
def err_template_kw_refers_to_non_template : Error<
58755875
"%0%select{| following the 'template' keyword}1 "
58765876
"does not refer to a template">;
@@ -9566,9 +9566,11 @@ def err_incomplete_type_used_in_type_trait_expr : Error<
95669566
"incomplete type %0 used in type trait expression">, NoSFINAE;
95679567

95689568
// C++20 constinit and require_constant_initialization attribute
9569-
def warn_cxx20_compat_constinit : Warning<
9570-
"'constinit' specifier is incompatible with C++ standards before C++20">,
9571-
InGroup<CXXPre20Compat>, DefaultIgnore;
9569+
def warn_cxx20_compat_constinit
9570+
: Warning<"'constinit' specifier is incompatible with C++ standards before "
9571+
"C++20">,
9572+
InGroup<CXXPre20Compat>,
9573+
DefaultIgnore;
95729574
def err_constinit_local_variable : Error<
95739575
"local variable cannot be declared 'constinit'">;
95749576
def err_require_constant_init_failed : Error<

0 commit comments

Comments
 (0)