]> granicus.if.org Git - clang/commitdiff
Turn -Wobjc-root-class on by default. <rdar://problem/11203649>.
authorTed Kremenek <kremenek@apple.com>
Wed, 25 Jul 2012 07:26:32 +0000 (07:26 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 25 Jul 2012 07:26:32 +0000 (07:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160707 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/Analysis/delegates.m
test/PCH/objc_methods.m
test/Sema/warn-documentation.m
test/Sema/warn-self-assign-field.mm
test/SemaObjC/error-implicit-property.m
test/SemaObjC/iboutlet.m
test/SemaObjC/no-ivar-in-interface-block.m
test/SemaObjC/property-12.m
test/SemaObjC/weak-receiver-warn.m

index 67f43d22c814b21fb62f5c99da687ac0b40e2420..6a4e7d8c9bb94f78beade0a3596edf351b596ba8 100644 (file)
@@ -480,7 +480,7 @@ def err_objc_root_class_subclass : Error<
   "objc_root_class attribute may only be specified on a root class declaration">;
 def warn_objc_root_class_missing : Warning<
        "class %0 defined without specifying a base class">,
-  InGroup<ObjCRootClass>, DefaultIgnore;
+  InGroup<ObjCRootClass>;
 def note_objc_needs_superclass : Note<
   "add a super class to fix this problem">;
 def warn_dup_category_def : Warning<
index 970f81a591366709abcb9f3f94f418920fd9e64e..7fc4f2bb96166e130f2290983b7cd2f1469ffe1f 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount -analyzer-store=region -verify %s
+// RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount -analyzer-store=region -Wno-objc-root-class -verify %s
 
 
 //===----------------------------------------------------------------------===//
index e90a463dce6b294a540c3609e58297f80ba7a697..e8aab843dc515f45f469d164805ae6b81b2dadfa 100644 (file)
@@ -1,5 +1,5 @@
 // Test this without pch.
-// RUN: %clang_cc1 -include %S/objc_methods.h -fsyntax-only -verify %s
+// RUN: %clang_cc1 -include %S/objc_methods.h -fsyntax-only -Wno-objc-root-class -verify %s
 
 // Test with pch.
 // RUN: %clang_cc1 -x objective-c -emit-pch -o %t %S/objc_methods.h
index 3a661c5ef4078c6058806e209a166a1ae2eeca81..4b6aac3b496461f6c2ce31d710074b5ab0ae1cb0 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -Wdocumentation -Wdocumentation-pedantic -verify %s
+// RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -Wdocumentation -Wdocumentation-pedantic -verify %s
 
 @class NSString;
 
index ad0ff3e694b2722ca0388d56aceaa6af7ab521bb..3ba8d62b663fd9d2bed90052ae35f861e85d6f71 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s
 
 class S {
  public:
index ea0587a7449a9cbcdf08d18b45ede23c9781a5dc..7e795c718829f2abe13ae361cc41a17f31fa9f90 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -verify %s
+// RUN: %clang_cc1 -Wno-objc-root-class -verify %s
 // rdar://11273060
 
 @interface I
index c9f5d8cf2a6aed221cca9172d943c1670462044f..a29915c393a1ceb71e900843a99d5d3d55646bed 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-default-synthesize-properties  -verify %s
-// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -fobjc-default-synthesize-properties  -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-default-synthesize-properties -Wno-objc-root-class -verify %s
+// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -fobjc-default-synthesize-properties -Wno-objc-root-class -verify %s
 // rdar://11448209
 
 #define READONLY readonly
index 1d3b518aa5ce6c132ddfda4c5bdb0e5e764ebd6c..215db6150e53299e988b62bf5cd16a825976b258 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1  -fsyntax-only -verify -Wobjc-interface-ivars %s
+// RUN: %clang_cc1  -fsyntax-only -verify -Wno-objc-root-class -Wobjc-interface-ivars %s
 // rdar://10763173
 
 @interface I
index ee9cb1a843fdea90b1ecb5f7d8eed91b36f55e07..c4a755555629f78d2bc69a7e17c4b3f28ef52f0b 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -Wreadonly-setter-attrs -verify %s
+// RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -Wreadonly-setter-attrs -verify %s
 
 @protocol P0
 @property(readonly,assign) id X; // expected-warning {{property attributes 'readonly' and 'assign' are mutually exclusive}}
index e6f8eaba8c5068ef3c19867b03db1414f52f720f..547f0087bc404c61f379eee66fce620e6e883f06 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -fobjc-runtime-has-weak -fobjc-arc -fblocks -Wreceiver-is-weak -verify %s
+// RUN: %clang_cc1 -fsyntax-only -fobjc-runtime-has-weak -fobjc-arc -fblocks -Wno-objc-root-class -Wreceiver-is-weak -verify %s
 // rdar://10225276
 
 @interface Test0