/minix/external/bsd/llvm/dist/clang/test/Preprocessor/ |
H A D | pragma_microsoft.c | 32 __pragma(warning(push)); \ 35 __pragma(warning(pop)); \ 92 #pragma warning(push) 93 #pragma warning(push, 1) 94 #pragma warning(disable : 4705) 96 #pragma warning(once : 321) 97 #pragma warning(suppress : 321) 98 #pragma warning(default : 321) 99 #pragma warning(pop) 101 #pragma warning(push, 0) [all …]
|
/minix/external/bsd/llvm/dist/clang/test/Analysis/ |
H A D | global_region_invalidation.mm | 12 clang_analyzer_eval(p == 0); // expected-warning{{TRUE}} 80 clang_analyzer_eval(i == 5); // expected-warning{{TRUE}} 82 clang_analyzer_eval(i == 5); // expected-warning{{TRUE}} 84 clang_analyzer_eval(i == 5); // expected-warning{{TRUE}} 88 clang_analyzer_eval(i == 6); // expected-warning{{TRUE}} 90 clang_analyzer_eval(i == 6); // expected-warning{{TRUE}} 92 clang_analyzer_eval(i == 6); // expected-warning{{TRUE}} 102 clang_analyzer_eval(i == 8); // expected-warning{{TRUE}} 120 clang_analyzer_eval(i == 6); // expected-warning{{TRUE}} 122 clang_analyzer_eval(i == 6); // expected-warning{{TRUE}} [all …]
|
H A D | ivars.m | 61 clang_analyzer_eval(s.a == 1); // expected-warning{{TRUE}} 62 clang_analyzer_eval(s.b == 2); // expected-warning{{TRUE}} 63 clang_analyzer_eval(c == 3); // expected-warning{{TRUE}} 64 clang_analyzer_eval(d == 4); // expected-warning{{TRUE}} 68 clang_analyzer_eval(s.a == 1); // expected-warning{{TRUE}} 70 clang_analyzer_eval(c == 3); // expected-warning{{TRUE}} 71 clang_analyzer_eval(d == 0); // expected-warning{{TRUE}} 78 clang_analyzer_eval(c == 3); // expected-warning{{TRUE}} 79 clang_analyzer_eval(d == 4); // expected-warning{{TRUE}} 85 clang_analyzer_eval(c == 3); // expected-warning{{TRUE}} [all …]
|
H A D | ctor.mm | 158 y = Other.y; // expected-warning {{undefined}} 164 y = Other.y; // expected-warning {{undefined}} 205 POD p2 = p; // no-warning 207 POD p3 = move(p); // no-warning 215 PODWrapper w2 = w; // no-warning 217 PODWrapper w3 = move(w); // no-warning 255 p2 = p; // no-warning 258 p3 = move(p); // no-warning 264 w2 = w; // no-warning 267 w3 = move(w); // no-warning [all …]
|
H A D | uninit-vals.m | 26 if (bogus) // no-warning 39 test_PR10163(x[1]); // no-warning 67 if (testObj->size > 0) { ; } // warning occurs here 114 if (testObj->size > 0) { ; } // warning occurs here 144 useCircle(obj); // no-warning 148 useCircle(obj); // no-warning 174 useInt(b.x); // no-warning 175 useInt(b.y); // expected-warning{{uninitialized}} 184 useInt(b.x); // no-warning 185 useInt(b.y); // no-warning [all …]
|
H A D | MismatchedDeallocator-checker-test.mm | 126 delete &i; // no-warning 129 delete ++p1; // no-warning 133 delete p2; // no-warning 147 delete p; // no-warning 153 p = new(p) int; // no-warning 164 free(&i); // no-warning 167 free(++p1); // no-warning 171 free(p2); // no-warning 179 free(p); // no-warning 205 } // no-warning [all …]
|
H A D | objc-for.m | 85 *(volatile int *)0 = 1; // no-warning 107 clang_analyzer_eval(s == 0); //expected-warning{{FALSE}} //expected-warning{{TRUE}} 119 return (tapCounts[0]); //no warning 197 return i; // no-warning 228 return x; // no-warning 239 return x; // no-warning 248 clang_analyzer_eval(0); // no-warning 253 clang_analyzer_eval(0); // no-warning 258 clang_analyzer_eval(0); // no-warning 270 clang_analyzer_eval(0); // no-warning [all …]
|
H A D | objc-string.mm | 7 clang_analyzer_eval(@""); // expected-warning{{TRUE}} 8 clang_analyzer_eval(@"abc"); // expected-warning{{TRUE}} 18 clang_analyzer_eval(kConstantGlobalString); // expected-warning{{TRUE}} 19 clang_analyzer_eval(globalString); // expected-warning{{UNKNOWN}} 22 clang_analyzer_eval(globalString); // expected-warning{{TRUE}} 26 clang_analyzer_eval(kConstantGlobalString); // expected-warning{{TRUE}} 27 clang_analyzer_eval(globalString); // expected-warning{{UNKNOWN}} 35 clang_analyzer_eval(returnString(@"")); // expected-warning{{TRUE}} 36 clang_analyzer_eval(returnString(0)); // expected-warning{{FALSE}} 37 clang_analyzer_eval(returnString()); // expected-warning{{TRUE}}
|
H A D | nonnull.m | 12 [obj takePointer:p]; // expected-warning{{nonnull}} 24 [obj takePointer:p]; // expected-warning{{nonnull}} 30 [obj takePointerArg:p]; // expected-warning{{nonnull}} 75 rdar16153464_check(inner); // no-warning 76 rdar16153464_check(0); // expected-warning{{nonnull}} 84 multipleAttributes_1(&c, &c); // no-warning 98 multipleAttributes_1(0, 0);// expected-warning{{nonnull}} 116 multipleAttributes_2(0, 0);// expected-warning{{nonnull}} 129 multipleAttributes_3(&c, 0); // no-warning 142 multipleAttributes_4(&c, 0, &c); // no-warning [all …]
|
H A D | retain-release-cf-audited.m | 18 CFTypeRef obj = CFCreateSomethingAudited(); // no-warning 19 CFRelease(obj); // no-warning 21 CFTypeRef obj2 = CFCreateSomethingAudited(); // expected-warning{{leak}} 22 CFRetain(obj2); // no-warning 23 CFRelease(obj2); // no-warning 27 CFTypeRef obj = CFCreateSomethingUnaudited(); // no-warning 28 CFRelease(obj); // no-warning 30 CFTypeRef obj2 = CFCreateSomethingUnaudited(); // expected-warning{{leak}} 31 CFRetain(obj2); // no-warning 32 CFRelease(obj2); // no-warning
|
/minix/external/bsd/llvm/dist/llvm/test/MC/ARM/ |
H A D | v8_IT_manual.s | 4 @ CHECK-NOT: [[@LINE+2]]:1: warning 8 @ CHECK-NOT: [[@LINE+2]]:1: warning 22 @ CHECK-NOT: [[@LINE+2]]:1: warning 26 @ CHECK-NOT: [[@LINE+2]]:1: warning 38 @ CHECK-NOT: [[@LINE+2]]:1: warning 55 @ CHECK-NOT: [[@LINE+2]]:1: warning 63 @ CHECK-NOT: [[@LINE+2]]:1: warning 67 @ CHECK-NOT: [[@LINE+2]]:1: warning 92 @ CHECK-NOT: [[@LINE+2]]:1: warning 103 @ CHECK-NOT: [[@LINE+2]]:1: warning [all …]
|
H A D | deprecated-v8.s | 7 @ CHECK-ARMV8: warning: deprecated 8 @ CHECK-THUMBV8: warning: deprecated 9 @ CHECK-ARMV7-NOT: warning: deprecated 10 @ CHECK-THUMBV7-NOT: warning: deprecated 12 @ CHECK-ARMV8: warning: deprecated since v7, use 'isb' 14 @ CHECK-ARMV7: warning: deprecated since v7, use 'isb' 32 @ CHECK-THUMBV7-NOT: warning 38 @ CHECK-THUMBV7-NOT: warning 42 @ CHECK-THUMBV7-NOT: warning 46 @ CHECK-THUMBV7-NOT: warning [all …]
|
H A D | arm-load-store-multiple-deprecated.s | 14 @ CHECK: warning: use of SP or PC in the list is deprecated 18 @ CHECK: warning: use of SP or PC in the list is deprecated 22 @ CHECK: warning: use of SP or PC in the list is deprecated 155 @ CHECK: warning: use of SP in the list is deprecated 157 @ CHECK: warning: use of SP in the list is deprecated 167 @ CHECK: warning: use of SP in the list is deprecated 169 @ CHECK: warning: use of SP in the list is deprecated 179 @ CHECK: warning: use of SP in the list is deprecated 181 @ CHECK: warning: use of SP in the list is deprecated 191 @ CHECK: warning: use of SP in the list is deprecated [all …]
|
/minix/external/bsd/llvm/dist/clang/test/Parser/ |
H A D | objc-messaging-1.m | 7 [a ii]; // expected-warning{{not found}} 8 [a if: 1 :2]; // expected-warning{{not found}} 9 [a inout: 1 :2 another:(2,3,4)]; // expected-warning{{not found}} \ 10 // expected-warning 2{{expression result unused}} 12 // expected-warning 2{{expression result unused}} 14 // expected-warning 4{{expression result unused}} 16 // expected-warning 2{{expression result unused}} 18 // expected-warning 2{{expression result unused}} 20 // expected-warning 2{{expression result unused}} 23 [a, b, c foo]; // expected-warning{{not found}} \ [all …]
|
/minix/external/bsd/llvm/dist/clang/test/SemaObjC/ |
H A D | comptypes-7.m | 27 …obj = i; // expected-warning {{incompatible integer to pointer conversion assigning to 'id' from '… 28 obj = j; // expected-warning {{incompatible pointer types assigning to 'id' from 'int *'}} 31 …obj_p = j; // expected-warning {{incompatible pointer types assigning to 'id<MyProtocol>' from 'in… 34 …obj_c = j; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'int *'}} 37 obj_C = j; // expected-warning {{incompatible pointer types assigning to 'Class' from 'int *'}} 44 j = obj; // expected-warning {{incompatible pointer types assigning to 'int *' from 'id'}} 46 …j = obj_c; // expected-warning {{incompatible pointer types assigning to 'int *' from 'MyClass *'}} 47 j = obj_C; // expected-warning {{incompatible pointer types assigning to 'int *' from 'Class'}} 49 …if (obj == i) foo() ; // expected-warning {{comparison between pointer and integer ('id' and 'int'… 50 …if (i == obj) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'id'… [all …]
|
H A D | arc-repeated-weak.mm | 26 use(a.strongProp); // no-warning 32 use(a.weakProp); // no-warning 33 use(a.strongProp); // no-warning 37 a.weakProp = get(); // no-warning 49 x = get(); // no-warning 52 x = next; // no-warning 61 use(a.weakProp); // no-warning 62 use(b.weakProp); // no-warning 87 use(a.weakProp); // no-warning 165 use(a.weakProp); // no-warning [all …]
|
H A D | attr-deprecated.m | 51 [A F]; // expected-warning{{'F' is deprecated}} 52 [a f]; // expected-warning{{'f' is deprecated}} 62 [a f]; // expected-warning{{'f' is deprecated}} 63 [a p]; // expected-warning{{'p' is deprecated}} 89 DEPRECATED *ivar2; // no warning. 92 - (DEPRECATED *) meth; // no warning. 96 @interface DEPRECATED (Category) // no warning. 97 - (DEPRECATED *) meth2; // no warning. 100 @interface DEPRECATED (Category2) // no warning. 184 static DeprecatedClassB *x; // no-warning [all …]
|
H A D | arc-non-pod-memaccess.m | 25 // expected-note{{explicitly cast the pointer to silence this warning}} 27 // expected-note{{explicitly cast the pointer to silence this warning}} 29 // expected-note{{explicitly cast the pointer to silence this warning}} 33 // expected-note{{explicitly cast the pointer to silence this warning}} 35 // expected-note{{explicitly cast the pointer to silence this warning}} 37 // expected-note{{explicitly cast the pointer to silence this warning}} 41 // expected-note{{explicitly cast the pointer to silence this warning}} 43 // expected-note{{explicitly cast the pointer to silence this warning}} 45 // expected-note{{explicitly cast the pointer to silence this warning}} 49 // expected-note{{explicitly cast the pointer to silence this warning}} [all …]
|
H A D | nonnull.m | 9 int f1(int x); // no warning 14 int f6(NSObject *x) __attribute__ ((nonnull (1))); // no-warning 15 int f7(NSObject *x) __attribute__ ((nonnull)); // no-warning 47 func6((NSObject*) 0); // no-warning 48 func7((NSObject*) 0); // no-warning 51 void func5(int) NONNULL_ATTR; // no warning 64 void _dispatch_queue_push_list(dispatch_object_t _head); // no warning 68 _dispatch_queue_push_list(_head._do); // no warning 77 - (void*)returnsCNonNull __attribute__((returns_nonnull)); // no-warning 78 - (id)returnsObjCNonNull __attribute__((returns_nonnull)); // no-warning [all …]
|
H A D | warn-unreachable.m | 7 @autoreleasepool { // no-warning 12 // Test the warning works. 15 return; // expected-warning {{will never be executed}} 25 return 1; // expected-warning {{will never be executed}} 34 return 0; // expected-warning {{will never be executed}} 44 // FIXME: This should at some point report a warning 47 for (id x in container) { // no-warning 57 if ((NO)) calledFun(); // no-warning 67 calledFun(); // no-warning 75 calledFun(); // no-warning [all …]
|
H A D | comptypes-3.m | 29 …obj_a = obj_b; // expected-warning {{assigning to 'id<MyProtocolA>' from incompatible type 'id<My… 33 …obj_b = obj_a; // expected-warning {{assigning to 'id<MyProtocolB>' from incompatible type 'id<My… 35 …obj_b = obj_ac; // expected-warning {{assigning to 'id<MyProtocolB>' from incompatible type 'id<My… 37 …obj_ab = obj_a; // expected-warning {{assigning to 'id<MyProtocolAB>' from incompatible type 'id<… 38 …obj_ab = obj_b; // expected-warning {{assigning to 'id<MyProtocolAB>' from incompatible type 'id<… 39 …obj_ab = obj_ac; // expected-warning {{assigning to 'id<MyProtocolAB>' from incompatible type 'id<… 41 …obj_ac = obj_a; // expected-warning {{assigning to 'id<MyProtocolAC>' from incompatible type 'id<… 42 …obj_ac = obj_b; // expected-warning {{assigning to 'id<MyProtocolAC>' from incompatible type 'id<… 43 …obj_ac = obj_ab; // expected-warning {{assigning to 'id<MyProtocolAC>' from incompatible type 'id<… 45 …if (obj_a == obj_b) foo (); // expected-warning {{comparison of distinct pointer types ('id<MyProt… [all …]
|
H A D | objc-literal-comparison.m | 9 // (test the warning flag as well) 63 …if ([BaseObject new] == @"") return; // expected-warning{{direct comparison of a string literal ha… 65 …if ([BadEqualReturnString new] == @"") return; // expected-warning{{direct comparison of a string … 66 …if ([BadEqualArgString new] == @"") return; // expected-warning{{direct comparison of a string lit… 68 …if (@"" < @"") return; // expected-warning{{direct comparison of a string literal has undefined be… 69 …if (@"" > @"") return; // expected-warning{{direct comparison of a string literal has undefined be… 70 …if (@"" <= @"") return; // expected-warning{{direct comparison of a string literal has undefined b… 71 …if (@"" >= @"") return; // expected-warning{{direct comparison of a string literal has undefined b… 79 if (obj == @"") return; // no-warning 80 if (@"" == obj) return; // no-warning [all …]
|
/minix/external/bsd/llvm/dist/clang/test/Lexer/ |
H A D | pragma-operators.cpp | 13 #define A(X) extern "C" { __pragma(warning(push)) \ 17 #pragma warning(push) 19 #pragma warning(pop) 39 #pragma warning(disable : 1 2L 3U ; error : 4 5 6 ; suppress : 7 8 9) 46 #pragma warning(push) 47 #pragma warning(push, 1L) 48 #pragma warning(push, 4U) 49 #pragma warning(push, 0x1) 50 #pragma warning(push, 03) 51 #pragma warning(push, 0b10) [all …]
|
/minix/external/bsd/llvm/dist/clang/test/FixIt/ |
H A D | format.m | 9 printf("%d", x); // no-warning 15 NSLog(@"%d", x); // no-warning 26 printf("%s", x); // no-warning 32 NSLog(@"%s", x); // no-warning 44 NSLog(@"%@", x); // no-warning 55 NSLog(@"%@", x); // no-warning 66 NSLog(@"%@", x); // no-warning 76 NSLog(@"%@", x); // no-warning 108 NSLog(@"%c", c); // no-warning 121 NSLog(@"%c", s); // no-warning [all …]
|
/minix/external/bsd/llvm/dist/llvm/test/FileCheck/ |
H A D | implicit-check-not.txt | 10 warning: aaa 11 ; CHECK-PASS: warning: aaa 15 ; CHECK-FAIL2: warning: aaa 16 ; CHECK-FAIL3: warning: aaa 24 warning: bbb 25 ; CHECK-PASS: warning: bbb 26 ; CHECK-FAIL1: warning: bbb 30 ; CHECK-FAIL3: warning: bbb 35 warning: ccc 36 ; CHECK-PASS: warning: ccc [all …]
|