[clang] [Clang] FunctionEffects: Make a separate diagnostic group for redeclarations/overrides where effects are implicit. (PR #148690)
Doug Wyatt via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 15 08:18:37 PDT 2025
================
@@ -11529,17 +11529,28 @@ def note_in_evaluating_default_argument : Note<
def warn_invalid_add_func_effects : Warning<
"attribute '%0' should not be added via type conversion">,
InGroup<FunctionEffects>, DefaultIgnore;
-def warn_mismatched_func_effect_override : Warning<
- "attribute '%0' on overriding function does not match base declaration">,
- InGroup<FunctionEffects>, DefaultIgnore;
-def warn_mismatched_func_effect_redeclaration : Warning<
- "attribute '%0' on function does not match previous declaration">,
- InGroup<FunctionEffects>, DefaultIgnore;
+def warn_conflicting_func_effect_override
+ : Warning<"attribute '%0' on overriding function conflicts with base "
+ "declaration">,
+ InGroup<FunctionEffects>,
+ DefaultIgnore;
----------------
dougsonos wrote:
Thanks, added a test.
https://github.com/llvm/llvm-project/pull/148690
More information about the cfe-commits
mailing list