Skip to content

Commit 2a71d8a

Browse files
author
Doug Wyatt
committed
clang-format
1 parent ea41b2d commit 2a71d8a

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11529,22 +11529,28 @@ def note_in_evaluating_default_argument : Note<
1152911529
def warn_invalid_add_func_effects : Warning<
1153011530
"attribute '%0' should not be added via type conversion">,
1153111531
InGroup<FunctionEffects>, DefaultIgnore;
11532-
def warn_conflicting_func_effect_override : Warning<
11533-
"attribute '%0' on overriding function conflicts with base declaration">,
11534-
InGroup<FunctionEffects>, DefaultIgnore;
11532+
def warn_conflicting_func_effect_override
11533+
: Warning<"attribute '%0' on overriding function conflicts with base "
11534+
"declaration">,
11535+
InGroup<FunctionEffects>,
11536+
DefaultIgnore;
1153511537
def warn_conflicting_func_effects : Warning<
1153611538
"effects conflict when merging declarations; kept '%0', discarded '%1'">,
1153711539
InGroup<FunctionEffects>, DefaultIgnore;
1153811540
def err_func_with_effects_no_prototype : Error<
1153911541
"'%0' function must have a prototype">;
1154011542
// These are more pedantic: in redeclarations and virtual method overrides,
1154111543
// the effect attribute(s) should be restated.
11542-
def warn_mismatched_func_effect_override : Warning<
11543-
"overriding function is missing '%0' attribute from base declaration">,
11544-
InGroup<FunctionEffectRedeclarations>, DefaultIgnore;
11545-
def warn_mismatched_func_effect_redeclaration : Warning<
11546-
"redeclaration is missing '%0' attribute from previous declaration">,
11547-
InGroup<FunctionEffectRedeclarations>, DefaultIgnore;
11544+
def warn_mismatched_func_effect_override
11545+
: Warning<"overriding function is missing '%0' attribute from base "
11546+
"declaration">,
11547+
InGroup<FunctionEffectRedeclarations>,
11548+
DefaultIgnore;
11549+
def warn_mismatched_func_effect_redeclaration
11550+
: Warning<
11551+
"redeclaration is missing '%0' attribute from previous declaration">,
11552+
InGroup<FunctionEffectRedeclarations>,
11553+
DefaultIgnore;
1154811554

1154911555
} // end of sema category
1155011556

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18700,8 +18700,9 @@ bool Sema::CheckOverridingFunctionAttributes(CXXMethodDecl *New,
1870018700
NewFT->getParamTypes(), EPI);
1870118701
New->setType(ModQT);
1870218702
if (Errs.empty()) {
18703-
// A warning here is somewhat pedantic, in a different warning group.
18704-
// Skip this if there was already a merge conflict, which is more serious.
18703+
// A warning here is somewhat pedantic, in a different warning
18704+
// group. Skip this if there was already a merge conflict, which is
18705+
// more serious.
1870518706
Diag(New->getLocation(), diag::warn_mismatched_func_effect_override)
1870618707
<< Diff.effectName();
1870718708
Diag(Old->getLocation(), diag::note_overridden_virtual_function)

0 commit comments

Comments
 (0)