diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-07-30 01:31:03 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-07-30 01:31:03 +0000 |
commit | 3bf758cd6579712f99b6fa536d55d63d9b6f1a7a (patch) | |
tree | febb660e0996469f8b2f52abc3dcd9e0bdebcff4 /clang/test | |
parent | 0cf702fa619c5733e79aebf4307344ff70cbebb4 (diff) | |
download | bcm5719-llvm-3bf758cd6579712f99b6fa536d55d63d9b6f1a7a.tar.gz bcm5719-llvm-3bf758cd6579712f99b6fa536d55d63d9b6f1a7a.zip |
err_attribute_not_string has been subsumed by err_attribute_argument_type.
llvm-svn: 187400
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Parser/MicrosoftExtensions.cpp | 34 | ||||
-rw-r--r-- | clang/test/Sema/MicrosoftExtensions.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/annotate.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/attr-section.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/attr-tls_model.c | 2 | ||||
-rw-r--r-- | clang/test/Sema/attr-unavailable-message.c | 6 | ||||
-rw-r--r-- | clang/test/Sema/callingconv.c | 2 | ||||
-rw-r--r-- | clang/test/SemaObjC/attr-objc-gc.m | 4 |
8 files changed, 27 insertions, 27 deletions
diff --git a/clang/test/Parser/MicrosoftExtensions.cpp b/clang/test/Parser/MicrosoftExtensions.cpp index d8a597a8cc5..3df461053d4 100644 --- a/clang/test/Parser/MicrosoftExtensions.cpp +++ b/clang/test/Parser/MicrosoftExtensions.cpp @@ -4,21 +4,21 @@ [repeatable][source_annotation_attribute( Parameter|ReturnValue )] struct SA_Post{ SA_Post(); int attr; }; -[returnvalue:SA_Post( attr=1)] +[returnvalue:SA_Post( attr=1)] int foo1([SA_Post(attr=1)] void *param); namespace { - [returnvalue:SA_Post(attr=1)] + [returnvalue:SA_Post(attr=1)] int foo2([SA_Post(attr=1)] void *param); } class T { - [returnvalue:SA_Post(attr=1)] + [returnvalue:SA_Post(attr=1)] int foo3([SA_Post(attr=1)] void *param); }; extern "C" { - [returnvalue:SA_Post(attr=1)] + [returnvalue:SA_Post(attr=1)] int foo5([SA_Post(attr=1)] void *param); } @@ -32,7 +32,7 @@ public: void uuidof_test1() -{ +{ __uuidof(0); // expected-error {{you need to include <guiddef.h> before using the '__uuidof' operator}} } @@ -44,8 +44,8 @@ typedef struct _GUID unsigned char Data4[8]; } GUID; -struct __declspec(uuid(L"00000000-0000-0000-1234-000000000047")) uuid_attr_bad1 { };// expected-error {{'uuid' attribute requires parameter 1 to be a string}} -struct __declspec(uuid(3)) uuid_attr_bad2 { };// expected-error {{'uuid' attribute requires parameter 1 to be a string}} +struct __declspec(uuid(L"00000000-0000-0000-1234-000000000047")) uuid_attr_bad1 { };// expected-error {{'uuid' attribute requires a string}} +struct __declspec(uuid(3)) uuid_attr_bad2 { };// expected-error {{'uuid' attribute requires a string}} struct __declspec(uuid("0000000-0000-0000-1234-0000500000047")) uuid_attr_bad3 { };// expected-error {{uuid attribute contains a malformed GUID}} struct __declspec(uuid("0000000-0000-0000-Z234-000000000047")) uuid_attr_bad4 { };// expected-error {{uuid attribute contains a malformed GUID}} struct __declspec(uuid("000000000000-0000-1234-000000000047")) uuid_attr_bad5 { };// expected-error {{uuid attribute contains a malformed GUID}} @@ -59,7 +59,7 @@ struct struct_without_uuid { }; struct __declspec(uuid("000000A0-0000-0000-C000-000000000049")) struct_with_uuid2; -struct +struct struct_with_uuid2 {} ; int uuid_sema_test() @@ -89,7 +89,7 @@ template <class T> void template_uuid() { T expr; - + __uuidof(T); __uuidof(expr); } @@ -113,7 +113,7 @@ typedef COM_CLASS_TEMPLATE_REF<struct_with_uuid, __uuidof(struct_with_uuid)> COM struct __declspec(uuid("000000A0-0000-0000-C000-000000000049")) late_defined_uuid; -class CtorCall { +class CtorCall { public: CtorCall& operator=(const CtorCall& that); @@ -136,7 +136,7 @@ public: class Iterator { }; }; - + template<class T> class C2 { typename C1<T>:: /*template*/ Iterator<0> Mypos; // expected-warning {{use 'template' keyword to treat 'Iterator' as a dependent template name}} @@ -160,7 +160,7 @@ void redundant_typename() { typename AAAA a;// expected-warning {{expected a qualified name after 'typename'}} t = 3; - + typedef typename T* pointerT;// expected-warning {{expected a qualified name after 'typename'}} typedef typename SimpleTemplate<int> templateT;// expected-warning {{expected a qualified name after 'typename'}} @@ -239,25 +239,25 @@ __if_not_exists(IF_EXISTS::Type_not) { int __if_exists_init_list() { int array1[] = { - 0, + 0, __if_exists(IF_EXISTS::Type) {2, } 3 }; int array2[] = { - 0, + 0, __if_exists(IF_EXISTS::Type_not) { this wont compile } 3 }; int array3[] = { - 0, + 0, __if_not_exists(IF_EXISTS::Type_not) {2, } 3 }; int array4[] = { - 0, + 0, __if_not_exists(IF_EXISTS::Type) { this wont compile } 3 }; @@ -300,7 +300,7 @@ class inline_definition_pure_spec { int main () { // Necessary to force instantiation in -fdelayed-template-parsing mode. - test_late_defined_uuid<int>(); + test_late_defined_uuid<int>(); redundant_typename<int>(); missing_template_keyword<int>(); } diff --git a/clang/test/Sema/MicrosoftExtensions.c b/clang/test/Sema/MicrosoftExtensions.c index 6bafc364828..a6caf7acb8a 100644 --- a/clang/test/Sema/MicrosoftExtensions.c +++ b/clang/test/Sema/MicrosoftExtensions.c @@ -96,7 +96,7 @@ struct __declspec(deprecated) DS1 { int i; float f; }; // expected-note {{declar #define MY_TEXT "This is also deprecated" __declspec(deprecated(MY_TEXT)) void Dfunc1( void ) {} // expected-note {{'Dfunc1' declared here}} -struct __declspec(deprecated(123)) DS2 {}; // expected-error {{argument to 'deprecated' attribute was not a string literal}} +struct __declspec(deprecated(123)) DS2 {}; // expected-error {{'deprecated' attribute requires a string}} void test( void ) { e1 = one; // expected-warning {{'e1' is deprecated: This is deprecated}} diff --git a/clang/test/Sema/annotate.c b/clang/test/Sema/annotate.c index 9d459c2bb99..4a786d0a016 100644 --- a/clang/test/Sema/annotate.c +++ b/clang/test/Sema/annotate.c @@ -2,7 +2,7 @@ void __attribute__((annotate("foo"))) foo(float *a) { __attribute__((annotate("bar"))) int x; - __attribute__((annotate(1))) int y; // expected-error {{argument to annotate attribute was not a string literal}} + __attribute__((annotate(1))) int y; // expected-error {{'annotate' attribute requires a string}} __attribute__((annotate("bar", 1))) int z; // expected-error {{'annotate' attribute takes one argument}} int u = __builtin_annotation(z, (char*) 0); // expected-error {{second argument to __builtin_annotation must be a non-wide string constant}} int v = __builtin_annotation(z, (char*) L"bar"); // expected-error {{second argument to __builtin_annotation must be a non-wide string constant}} diff --git a/clang/test/Sema/attr-section.c b/clang/test/Sema/attr-section.c index 69ca732517a..396892a1c5e 100644 --- a/clang/test/Sema/attr-section.c +++ b/clang/test/Sema/attr-section.c @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -verify -fsyntax-only -triple x86_64-apple-darwin9 %s int x __attribute__((section( - 42))); // expected-error {{argument to section attribute was not a string literal}} + 42))); // expected-error {{'section' attribute requires a string}} // rdar://4341926 diff --git a/clang/test/Sema/attr-tls_model.c b/clang/test/Sema/attr-tls_model.c index d62f359445c..c4f92f1f80d 100644 --- a/clang/test/Sema/attr-tls_model.c +++ b/clang/test/Sema/attr-tls_model.c @@ -10,5 +10,5 @@ int x __attribute((tls_model("global-dynamic"))); // expected-error {{'tls_model static __thread int y __attribute((tls_model("global-dynamic"))); // no-warning static __thread int y __attribute((tls_model("local", "dynamic"))); // expected-error {{'tls_model' attribute takes one argument}} -static __thread int y __attribute((tls_model(123))); // expected-error {{argument to tls_model attribute was not a string literal}} +static __thread int y __attribute((tls_model(123))); // expected-error {{'tls_model' attribute requires a string}} static __thread int y __attribute((tls_model("foobar"))); // expected-error {{tls_model must be "global-dynamic", "local-dynamic", "initial-exec" or "local-exec"}} diff --git a/clang/test/Sema/attr-unavailable-message.c b/clang/test/Sema/attr-unavailable-message.c index 1e1e19e60b7..ebdf945867f 100644 --- a/clang/test/Sema/attr-unavailable-message.c +++ b/clang/test/Sema/attr-unavailable-message.c @@ -6,7 +6,7 @@ double dfoo(double) __attribute__((__unavailable__("NO LONGER"))); // expected- void bar() __attribute__((__unavailable__)); // expected-note {{explicitly marked unavailable}} -int quux(void) __attribute__((__unavailable__(12))); // expected-error {{argument to '__unavailable__' attribute was not a string literal}} +int quux(void) __attribute__((__unavailable__(12))); // expected-error {{'__unavailable__' attribute requires a string}} #define ACCEPTABLE "Use something else" int quux2(void) __attribute__((__unavailable__(ACCEPTABLE))); @@ -37,13 +37,13 @@ enum foo { a = 1, // expected-note {{declared here}} b __attribute__((deprecated())) = 2, // expected-note {{declared here}} c = 3 -}__attribute__((deprecated())); +}__attribute__((deprecated())); enum fee { // expected-note {{declaration has been explicitly marked unavailable here}} r = 1, // expected-note {{declaration has been explicitly marked unavailable here}} s = 2, t = 3 -}__attribute__((unavailable())); +}__attribute__((unavailable())); enum fee f() { // expected-error {{'fee' is unavailable}} int i = a; // expected-warning {{'a' is deprecated}} diff --git a/clang/test/Sema/callingconv.c b/clang/test/Sema/callingconv.c index c0535058b96..ea91675c198 100644 --- a/clang/test/Sema/callingconv.c +++ b/clang/test/Sema/callingconv.c @@ -39,7 +39,7 @@ Handler H = foo; int __attribute__((pcs("aapcs", "aapcs"))) pcs1(void); // expected-error {{'pcs' attribute takes one argument}} int __attribute__((pcs())) pcs2(void); // expected-error {{'pcs' attribute takes one argument}} int __attribute__((pcs(pcs1))) pcs3(void); // expected-error {{'pcs' attribute takes one argument}} -int __attribute__((pcs(0))) pcs4(void); // expected-error {{'pcs' attribute requires parameter 1 to be a string}} +int __attribute__((pcs(0))) pcs4(void); // expected-error {{'pcs' attribute requires a string}} /* These are ignored because the target is i386 and not ARM */ int __attribute__((pcs("aapcs"))) pcs5(void); // expected-warning {{calling convention 'pcs' ignored for this target}} int __attribute__((pcs("aapcs-vfp"))) pcs6(void); // expected-warning {{calling convention 'pcs' ignored for this target}} diff --git a/clang/test/SemaObjC/attr-objc-gc.m b/clang/test/SemaObjC/attr-objc-gc.m index 7f106b9a00a..827945c668c 100644 --- a/clang/test/SemaObjC/attr-objc-gc.m +++ b/clang/test/SemaObjC/attr-objc-gc.m @@ -2,8 +2,8 @@ static id __attribute((objc_gc(weak))) a; static id __attribute((objc_gc(strong))) b; -static id __attribute((objc_gc())) c; // expected-error{{'objc_gc' attribute requires parameter 1 to be a string}} -static id __attribute((objc_gc(123))) d; // expected-error{{'objc_gc' attribute requires parameter 1 to be a string}} +static id __attribute((objc_gc())) c; // expected-error{{'objc_gc' attribute requires a string}} +static id __attribute((objc_gc(123))) d; // expected-error{{'objc_gc' attribute requires a string}} static id __attribute((objc_gc(foo, 456))) e; // expected-error{{'objc_gc' attribute takes one argument}} static id __attribute((objc_gc(hello))) f; // expected-warning{{'objc_gc' attribute argument not supported: 'hello'}} |