forked from OSchip/llvm-project
Turn -Wobjc-root-class on by default. <rdar://problem/11203649>.
llvm-svn: 160707
This commit is contained in:
parent
2b619662ee
commit
875a402dc3
|
@ -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<
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -verify %s
|
||||
// RUN: %clang_cc1 -Wno-objc-root-class -verify %s
|
||||
// rdar://11273060
|
||||
|
||||
@interface I
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue