From 82a6d375bda2fb424392113efad82125de365012 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 17 Apr 2018 04:25:18 +0000 Subject: [PATCH] Remove GC-related warning terminology ObjC-GC isn't used any more; clean up this warning text. rdar://problem/39049693 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330174 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/DiagnosticsReference.rst | 2 +- include/clang/Basic/DiagnosticSemaKinds.td | 2 +- test/SemaObjC/property-10.m | 2 +- test/SemaObjC/property.m | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/DiagnosticsReference.rst b/docs/DiagnosticsReference.rst index e2b0bd7dd5..ddf0ec5622 100644 --- a/docs/DiagnosticsReference.rst +++ b/docs/DiagnosticsReference.rst @@ -7556,7 +7556,7 @@ This diagnostic is enabled by default. **Diagnostic text:** +------------------------------------------------------------------------------------------------------------+ -|:warning:`warning:` |nbsp| :diagtext:`default property attribute 'assign' not appropriate for non-GC object`| +|:warning:`warning:` |nbsp| :diagtext:`default property attribute 'assign' not appropriate for object`| +------------------------------------------------------------------------------------------------------------+ +--------------------------------------------------------------------------------------------------------------------+ diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 0b859f875e..081f981b5a 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1032,7 +1032,7 @@ def warn_objc_pointer_masking : Warning< def warn_objc_pointer_masking_performSelector : Warning, InGroup; def warn_objc_property_default_assign_on_object : Warning< - "default property attribute 'assign' not appropriate for non-GC object">, + "default property attribute 'assign' not appropriate for object">, InGroup; def warn_property_attr_mismatch : Warning< "property attribute in class extension does not match the primary class">, diff --git a/test/SemaObjC/property-10.m b/test/SemaObjC/property-10.m index b2aaf2b1a1..7bd0d3be08 100644 --- a/test/SemaObjC/property-10.m +++ b/test/SemaObjC/property-10.m @@ -24,7 +24,7 @@ @property(unsafe_unretained, copy, retain) id p4_3; // expected-error {{property attributes 'unsafe_unretained' and 'copy' are mutually exclusive}}, expected-error {{property attributes 'unsafe_unretained' and 'retain' are mutually exclusive}} @property(unsafe_unretained, copy, strong) id s4_3; // expected-error {{property attributes 'unsafe_unretained' and 'copy' are mutually exclusive}}, expected-error {{property attributes 'unsafe_unretained' and 'strong' are mutually exclusive}} -@property id p4; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed}}, expected-warning {{default property attribute 'assign' not appropriate for non-GC object}} +@property id p4; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed}}, expected-warning {{default property attribute 'assign' not appropriate for object}} @property(nonatomic,copy) int (^includeMailboxCondition)(); @property(nonatomic,copy) int (*includeMailboxCondition2)(); // expected-error {{property with 'copy' attribute must be of object type}} diff --git a/test/SemaObjC/property.m b/test/SemaObjC/property.m index 7485447173..b67ac37b85 100644 --- a/test/SemaObjC/property.m +++ b/test/SemaObjC/property.m @@ -6,7 +6,7 @@ int name; } @property int d1; -@property id prop_id; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed}}, expected-warning {{default property attribute 'assign' not appropriate for non-GC object}} +@property id prop_id; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed}}, expected-warning {{default property attribute 'assign' not appropriate for object}} @property int name; @end -- 2.40.0