Turn -Wobjc-root-class on by default. <rdar://problem/11203649>.

llvm-svn: 160707
This commit is contained in:
Ted Kremenek 2012-07-25 07:26:32 +00:00
parent 2b619662ee
commit 875a402dc3
10 changed files with 11 additions and 11 deletions

View 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">; "objc_root_class attribute may only be specified on a root class declaration">;
def warn_objc_root_class_missing : Warning< def warn_objc_root_class_missing : Warning<
"class %0 defined without specifying a base class">, "class %0 defined without specifying a base class">,
InGroup<ObjCRootClass>, DefaultIgnore; InGroup<ObjCRootClass>;
def note_objc_needs_superclass : Note< def note_objc_needs_superclass : Note<
"add a super class to fix this problem">; "add a super class to fix this problem">;
def warn_dup_category_def : Warning< def warn_dup_category_def : Warning<

View 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
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//

View File

@ -1,5 +1,5 @@
// Test this without pch. // 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. // Test with pch.
// RUN: %clang_cc1 -x objective-c -emit-pch -o %t %S/objc_methods.h // RUN: %clang_cc1 -x objective-c -emit-pch -o %t %S/objc_methods.h

View 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; @class NSString;

View 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 { class S {
public: public:

View File

@ -1,4 +1,4 @@
// RUN: %clang_cc1 -verify %s // RUN: %clang_cc1 -Wno-objc-root-class -verify %s
// rdar://11273060 // rdar://11273060
@interface I @interface I

View File

@ -1,5 +1,5 @@
// RUN: %clang_cc1 -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 -verify %s // RUN: %clang_cc1 -x objective-c++ -fsyntax-only -fobjc-default-synthesize-properties -Wno-objc-root-class -verify %s
// rdar://11448209 // rdar://11448209
#define READONLY readonly #define READONLY readonly

View 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 // rdar://10763173
@interface I @interface I

View 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 @protocol P0
@property(readonly,assign) id X; // expected-warning {{property attributes 'readonly' and 'assign' are mutually exclusive}} @property(readonly,assign) id X; // expected-warning {{property attributes 'readonly' and 'assign' are mutually exclusive}}

View 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 // rdar://10225276
@interface Test0 @interface Test0