]> granicus.if.org Git - clang/commitdiff
Add -Wmismatched-method-attributes flag for when attributes in method definition and
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 15 Nov 2011 19:13:36 +0000 (19:13 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 15 Nov 2011 19:13:36 +0000 (19:13 +0000)
their decl. do not match. // rdar://10448471

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144676 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td

index 3d9b5b9214768258cd3078f8093b7b5ad5dd8dcd..82a5ba29f8cf9fca7690d9ce2168b2ce54433ee6 100644 (file)
@@ -4982,7 +4982,8 @@ def error_protected_ivar_access : Error<"instance variable %0 is protected">,
   AccessControl;
 def warn_maynot_respond : Warning<"%0 may not respond to %1">;
 def warn_attribute_method_def : Warning<
-  "method attribute can only be specified on method declarations">;
+  "method attribute can only be specified on method declarations">,
+  InGroup<DiagGroup<"mismatched-method-attributes">>;
 def ext_typecheck_base_super : Warning<
   "method parameter type %0 does not match "
   "super class method parameter type %1">, InGroup<SuperSubClassMismatch>, DefaultIgnore;