diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-24 03:54:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-24 03:54:41 +0000 |
commit | 86d7d91366f5c8f7ae17521abf630ddfd9b4d40e (patch) | |
tree | 494e321a9219e5206a02ad7d87a699de983deb9e /clang/test | |
parent | 9b1f2792baefb5192373e4c6260a3d437086cf2e (diff) | |
download | bcm5719-llvm-86d7d91366f5c8f7ae17521abf630ddfd9b4d40e.tar.gz bcm5719-llvm-86d7d91366f5c8f7ae17521abf630ddfd9b4d40e.zip |
Rename NamedDecl::getIdentifierName() to ::getNameAsCString() and make it
assert if the name is not an identifier. Update callers to do the right
thing and avoid this method in unsafe cases. This also fixes an objc
warning that was missing a space, and migrates a couple more to taking
IdentifierInfo and QualTypes instead of std::strings.
llvm-svn: 59936
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/SemaObjC/property-3.m | 2 | ||||
-rw-r--r-- | clang/test/SemaObjC/property-4.m | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaObjC/property-3.m b/clang/test/SemaObjC/property-3.m index b22059c2382..ed1d1bd2443 100644 --- a/clang/test/SemaObjC/property-3.m +++ b/clang/test/SemaObjC/property-3.m @@ -9,6 +9,6 @@ @end @interface NOW : I -@property (readonly, retain) id d1; // expected-warning {{attribute 'readonly' of property 'd1' restricts attribute 'readwrite' of property inherited from 'I'}} expected-warning {{property 'd1' 'copy' attribute does not match the property inherited from'I'}} +@property (readonly, retain) id d1; // expected-warning {{attribute 'readonly' of property 'd1' restricts attribute 'readwrite' of property inherited from 'I'}} expected-warning {{property 'd1' 'copy' attribute does not match the property inherited from 'I'}} @property (readwrite, copy) I* d2; // expected-warning {{property type 'I *' does not match property type inherited from 'I'}} @end diff --git a/clang/test/SemaObjC/property-4.m b/clang/test/SemaObjC/property-4.m index b5a8f8b1ccb..0fcc67d05d0 100644 --- a/clang/test/SemaObjC/property-4.m +++ b/clang/test/SemaObjC/property-4.m @@ -24,7 +24,7 @@ int newO; int oldO; } -@property (retain) id MayCauseError; // expected-warning {{property 'MayCauseError' 'copy' attribute does not match the property inherited from'GCObject'}} \ - expected-warning {{property 'MayCauseError' 'copy' attribute does not match the property inherited from'ProtocolObject'}} +@property (retain) id MayCauseError; // expected-warning {{property 'MayCauseError' 'copy' attribute does not match the property inherited from 'GCObject'}} \ + expected-warning {{property 'MayCauseError' 'copy' attribute does not match the property inherited from 'ProtocolObject'}} @end |