[cfe-commits] r144676 - /cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Fariborz Jahanian fjahanian at apple.com
Tue Nov 15 11:13:37 PST 2011


Author: fjahanian
Date: Tue Nov 15 13:13:36 2011
New Revision: 144676

URL: http://llvm.org/viewvc/llvm-project?rev=144676&view=rev
Log:
Add -Wmismatched-method-attributes flag for when attributes in method definition and
their decl. do not match. // rdar://10448471

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td

Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=144676&r1=144675&r2=144676&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Tue Nov 15 13:13:36 2011
@@ -4982,7 +4982,8 @@
   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;





More information about the cfe-commits mailing list