]> granicus.if.org Git - clang/commitdiff
Place -Wreadonly-setter-attrs under -Wmost option group.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 17 Jun 2009 00:06:21 +0000 (00:06 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 17 Jun 2009 00:06:21 +0000 (00:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73585 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td

index 186e4408fe21212f1234e169294dceddc7c7b451..ef16b4e69e3208e3a0a85652dda514c12c611d62 100644 (file)
@@ -93,6 +93,7 @@ def UnusedLabel : DiagGroup<"unused-label">;
 def UnusedParameter : DiagGroup<"unused-parameter">;
 def UnusedValue    : DiagGroup<"unused-value">;
 def UnusedVariable : DiagGroup<"unused-variable">;
+def ReadOnlySetterAttrs : DiagGroup<"readonly-setter-attrs">;
 def UndeclaredSelector : DiagGroup<"undeclared-selector">;
 def : DiagGroup<"variadic-macros">;
 def VectorConversions : DiagGroup<"vector-conversions">;      // clang specific
@@ -131,6 +132,7 @@ def Most : DiagGroup<"most", [
     UnusedVariable,
     VectorConversions,
     VolatileRegisterVar,
+    ReadOnlySetterAttrs,
     UndeclaredSelector
  ]>;
 
index af94a1a3310995b66e8518fb5c0527508b63e8e8..9f554495b6b53c99ae46ade07e5805dad34cf883 100644 (file)
@@ -240,7 +240,7 @@ def error_duplicate_ivar_use : Error<
 def error_property_implemented : Error<"property %0 is already implemented">;
 def warn_objc_property_attr_mutually_exclusive : Warning<
   "property attributes '%0' and '%1' are mutually exclusive">,
-  InGroup<DiagGroup<"readonly-setter-attrs">>, DefaultIgnore;
+  InGroup<ReadOnlySetterAttrs>, DefaultIgnore;
 def warn_undeclared_selector : Warning<
   "undeclared selector %0">, InGroup<UndeclaredSelector>, DefaultIgnore;