/external/clang/test/Analysis/ |
D | pthreadlock.c | 17 pthread_mutex_lock(&mtx1); // no-warning in ok1() 23 pthread_mutex_unlock(&mtx1); // no-warning in ok2() 29 pthread_mutex_lock(&mtx1); // no-warning in ok3() 30 pthread_mutex_unlock(&mtx1); // no-warning in ok3() 31 pthread_mutex_lock(&mtx1); // no-warning in ok3() 32 pthread_mutex_unlock(&mtx1); // no-warning in ok3() 38 pthread_mutex_lock(&mtx1); // no-warning in ok4() 39 pthread_mutex_unlock(&mtx1); // no-warning in ok4() 40 pthread_mutex_lock(&mtx2); // no-warning in ok4() 41 pthread_mutex_unlock(&mtx2); // no-warning in ok4() [all …]
|
D | additive-folding-range-constraints.c | 15 clang_analyzer_eval(a < UINT_MAX-1); // expected-warning{{TRUE}} in smallAdjustmentGT() 17 clang_analyzer_eval(a == UINT_MAX-1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentGT() 22 clang_analyzer_eval(a < UINT_MAX-1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentGE() 24 clang_analyzer_eval(a == UINT_MAX-1); // expected-warning{{TRUE}} in smallAdjustmentGE() 29 clang_analyzer_eval(a == 0 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentLT() 34 clang_analyzer_eval(a == 0 || a == 1 || a == UINT_MAX); // expected-warning{{TRUE}} in smallAdjustmentLE() 43 clang_analyzer_eval(a == 1); // expected-warning{{TRUE}} in largeAdjustmentGT() 45 clang_analyzer_eval(a != 1); // expected-warning{{TRUE}} in largeAdjustmentGT() 50 clang_analyzer_eval(a == 1 || a == 0); // expected-warning{{TRUE}} in largeAdjustmentGE() 52 clang_analyzer_eval(a > 1); // expected-warning{{TRUE}} in largeAdjustmentGE() [all …]
|
D | ptr-arith.c | 39 …int d = &y - &x; // expected-warning{{Subtraction of two pointers that do not point to the same me… in f3() 44 d = q-p; // no-warning in f3() 49 …p = (int*) 0x10000; // expected-warning{{Using a fixed address is not portable because that addres… in f4() 55 …p = &x + 1; // expected-warning{{Pointer arithmetic on non-array variables relies on memory layou… in f5() 58 p = a + 1; // no-warning in f5() 63 int d = q - p; // no-warning in f6() 69 clang_analyzer_eval(&&start != 0); // expected-warning{{TRUE}} in null_operand() 70 clang_analyzer_eval(&&start >= 0); // expected-warning{{TRUE}} in null_operand() 71 clang_analyzer_eval(&&start > 0); // expected-warning{{TRUE}} in null_operand() 72 clang_analyzer_eval((&&start - 0) != 0); // expected-warning{{TRUE}} in null_operand() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/Disassembler/AArch64/ |
D | fullfp16-neon-neg.txt | 6 # CHECK: warning: invalid instruction encoding 8 # CHECK: warning: invalid instruction encoding 10 # CHECK: warning: invalid instruction encoding 12 # CHECK: warning: invalid instruction encoding 14 # CHECK: warning: invalid instruction encoding 16 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 20 # CHECK: warning: invalid instruction encoding 22 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding [all …]
|
D | fullfp16-neg.txt | 5 # CHECK: warning: invalid instruction encoding 7 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 11 # CHECK: warning: invalid instruction encoding 13 # CHECK: warning: invalid instruction encoding 15 # CHECK: warning: invalid instruction encoding 17 # CHECK: warning: invalid instruction encoding 19 # CHECK: warning: invalid instruction encoding 21 # CHECK: warning: invalid instruction encoding 23 # CHECK: warning: invalid instruction encoding [all …]
|
/external/llvm/test/MC/Disassembler/AArch64/ |
D | fullfp16-neon-neg.txt | 6 # CHECK: warning: invalid instruction encoding 8 # CHECK: warning: invalid instruction encoding 10 # CHECK: warning: invalid instruction encoding 12 # CHECK: warning: invalid instruction encoding 14 # CHECK: warning: invalid instruction encoding 16 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 20 # CHECK: warning: invalid instruction encoding 22 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding [all …]
|
D | fullfp16-neg.txt | 5 # CHECK: warning: invalid instruction encoding 7 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 11 # CHECK: warning: invalid instruction encoding 13 # CHECK: warning: invalid instruction encoding 15 # CHECK: warning: invalid instruction encoding 17 # CHECK: warning: invalid instruction encoding 19 # CHECK: warning: invalid instruction encoding 21 # CHECK: warning: invalid instruction encoding 23 # CHECK: warning: invalid instruction encoding [all …]
|
/external/llvm/test/MC/Disassembler/ARM/ |
D | fullfp16-neon-arm-neg.txt | 3 # CHECK: warning: invalid instruction encoding 4 # CHECK: warning: invalid instruction encoding 8 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 13 # CHECK: warning: invalid instruction encoding 14 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 19 # CHECK: warning: invalid instruction encoding 23 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding [all …]
|
D | fullfp16-neon-thumb-neg.txt | 3 # CHECK: warning: invalid instruction encoding 4 # CHECK: warning: invalid instruction encoding 8 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 13 # CHECK: warning: invalid instruction encoding 14 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 19 # CHECK: warning: invalid instruction encoding 23 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding [all …]
|
D | fullfp16-arm-neg.txt | 3 # CHECK: warning: invalid instruction encoding 6 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 12 # CHECK: warning: invalid instruction encoding 15 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 21 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding 27 # CHECK: warning: invalid instruction encoding 30 # CHECK: warning: invalid instruction encoding [all …]
|
D | fullfp16-thumb-neg.txt | 3 # CHECK: warning: invalid instruction encoding 6 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 12 # CHECK: warning: invalid instruction encoding 15 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 21 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding 27 # CHECK: warning: invalid instruction encoding 30 # CHECK: warning: invalid instruction encoding [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/Disassembler/ARM/ |
D | fullfp16-neon-thumb-neg.txt | 3 # CHECK: warning: invalid instruction encoding 4 # CHECK: warning: invalid instruction encoding 8 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 13 # CHECK: warning: invalid instruction encoding 14 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 19 # CHECK: warning: invalid instruction encoding 23 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding [all …]
|
D | fullfp16-neon-arm-neg.txt | 3 # CHECK: warning: invalid instruction encoding 4 # CHECK: warning: invalid instruction encoding 8 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 13 # CHECK: warning: invalid instruction encoding 14 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 19 # CHECK: warning: invalid instruction encoding 23 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding [all …]
|
D | fullfp16-arm-neg.txt | 3 # CHECK: warning: invalid instruction encoding 6 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 12 # CHECK: warning: invalid instruction encoding 15 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 21 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding 27 # CHECK: warning: invalid instruction encoding 30 # CHECK: warning: invalid instruction encoding [all …]
|
D | fullfp16-thumb-neg.txt | 3 # CHECK: warning: invalid instruction encoding 6 # CHECK: warning: invalid instruction encoding 9 # CHECK: warning: invalid instruction encoding 12 # CHECK: warning: invalid instruction encoding 15 # CHECK: warning: invalid instruction encoding 18 # CHECK: warning: invalid instruction encoding 21 # CHECK: warning: invalid instruction encoding 24 # CHECK: warning: invalid instruction encoding 27 # CHECK: warning: invalid instruction encoding 30 # CHECK: warning: invalid instruction encoding [all …]
|
/external/llvm/test/MC/ARM/ |
D | v8_IT_manual.s | 4 @ CHECK-NOT: [[@LINE+2]]:1: warning 8 @ CHECK-NOT: [[@LINE+2]]:1: warning 11 @ CHECK: [[@LINE+2]]:1: warning: deprecated instruction in IT block 14 @ CHECK: [[@LINE+2]]:1: warning: deprecated instruction in IT block 18 @ CHECK: [[@LINE+2]]:1: warning: deprecated instruction in IT block 22 @ CHECK-NOT: [[@LINE+2]]:1: warning 26 @ CHECK-NOT: [[@LINE+2]]:1: warning 30 @ CHECK: [[@LINE+2]]:1: warning: deprecated instruction in IT block 34 @ CHECK: [[@LINE+2]]:1: warning: deprecated instruction in IT block 38 @ CHECK-NOT: [[@LINE+2]]:1: warning [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/ARM/ |
D | v8_IT_manual.s | 4 @ CHECK-NOT: :[[@LINE+2]]:1: warning 8 @ CHECK-NOT: :[[@LINE+2]]:1: warning 11 @ CHECK: :[[@LINE+2]]:1: warning: deprecated instruction in IT block 14 @ CHECK: :[[@LINE+2]]:1: warning: deprecated instruction in IT block 18 @ CHECK: :[[@LINE+2]]:1: warning: deprecated instruction in IT block 22 @ CHECK-NOT: :[[@LINE+2]]:1: warning 26 @ CHECK-NOT: :[[@LINE+2]]:1: warning 30 @ CHECK: :[[@LINE+2]]:1: warning: deprecated instruction in IT block 34 @ CHECK: :[[@LINE+2]]:1: warning: deprecated instruction in IT block 38 @ CHECK-NOT: :[[@LINE+2]]:1: warning [all …]
|
/external/clang/test/Sema/ |
D | bool-compare.c | 8 …if ((a > 2) > 1) {} // expected-warning {{comparison of constant 1 with boolean expression is alwa… in f() 10 if (a > b) {} // no warning in f() 11 if (a < b) {} // no warning in f() 12 if (a >= b) {} // no warning in f() 13 if (a <= b) {} // no warning in f() 14 if (a == b) {} // no warning in f() 15 if (a != b) {} // no warning in f() 17 if (a > 0) {} // no warning in f() 18 if (a > 1) {} // no warning in f() 19 if (a > 2) {} // no warning in f() [all …]
|
D | format-strings.c | 31 printf(s); // expected-warning {{format string is not a string literal}} in check_string_literal() 33 vprintf(s,ap); // expected-warning {{format string is not a string literal}} in check_string_literal() 34 fprintf(fp,s); // expected-warning {{format string is not a string literal}} in check_string_literal() 36 vfprintf(fp,s,ap); // expected-warning {{format string is not a string literal}} in check_string_literal() 37 asprintf(&b,s); // expected-warning {{format string is not a string lit}} in check_string_literal() 39 vasprintf(&b,s,ap); // expected-warning {{format string is not a string literal}} in check_string_literal() 40 sprintf(buf,s); // expected-warning {{format string is not a string literal}} in check_string_literal() 42 snprintf(buf,2,s); // expected-warning {{format string is not a string lit}} in check_string_literal() 44 __builtin___sprintf_chk(buf,0,-1,s); // expected-warning {{format string is not a string literal}} in check_string_literal() 46 __builtin___snprintf_chk(buf,2,0,-1,s); // expected-warning {{format string is not a string lit}} in check_string_literal() [all …]
|
D | format-strings-scanf.c | 21 scanf(s, i); // expected-warning{{format string is not a string literal}} in test() 22 scanf("%0d", i); // expected-warning{{zero field width in scanf format string is unused}} in test() 23 scanf("%00d", i); // expected-warning{{zero field width in scanf format string is unused}} in test() 24 …scanf("%d%[asdfasdfd", i, s); // expected-warning{{no closing ']' for '%[' in scanf format string}} in test() 27 scanf ("%" "hu" "\n", &s_x); // no-warning in test() 28 scanf("%y", i); // expected-warning{{invalid conversion specifier 'y'}} in test() 29 scanf("%%"); // no-warning in test() 30 scanf("%%%1$d", i); // no-warning in test() 31 scanf("%1$d%%", i); // no-warning in test() 32 scanf("%d", i, i); // expected-warning{{data argument not used by format string}} in test() [all …]
|
/external/clang/test/SemaCXX/ |
D | bool-compare.cpp | 8 …if(b > true) {} // expected-warning {{comparison of true with expression of type 'bool' is alwa… in f() 9 if(b < true) {} // no warning in f() 10 if(b >= true) {} // no warning in f() 11 …if(b <= true) {} // expected-warning {{comparison of true with expression of type 'bool' is alwa… in f() 12 if(b == true) {} // no warning in f() 13 if(b != true) {} // no warning in f() 15 if(b > false) {} // no warning in f() 16 …if(b < false) {} // expected-warning {{comparison of false with expression of type 'bool' is alw… in f() 17 …if(b >= false) {} // expected-warning {{comparison of false with expression of type 'bool' is alw… in f() 18 if(b <= false) {} // no warning in f() [all …]
|
D | warn-empty-body.cpp | 11 …f (x); // expected-warning {{if statement has empty body}} expected-note{{put the semicolon on a s… in test1() 15 …RO_A); // expected-warning {{if statement has empty body}} expected-note{{put the semicolon on a s… in test1() 16 …== x); // expected-warning {{if statement has empty body}} expected-note{{put the semicolon on a s… in test1() 20 … i++); { // expected-warning{{for loop has empty body}} expected-note{{put the semicolon on a sepa… in test1() 25 …x; i++); // expected-warning{{for loop has empty body}} expected-note{{put the semicolon on a sepa… in test1() 32 …i++); // expected-warning{{for loop has empty body}} expected-note{{put the semicolon on a separat… in test1() 38 …); // expected-warning{{range-based for loop has empty body}} expected-note{{put the semicolon on … in test1() 42 …); // expected-warning{{range-based for loop has empty body}} expected-note{{put the semicolon on … in test1() 45 … == 0); // expected-warning{{while loop has empty body}} expected-note{{put the semicolon on a sep… in test1() 48 …= 0); { // expected-warning{{while loop has empty body}} expected-note{{put the semicolon on a sep… in test1() [all …]
|
D | uninitialized.cpp | 23 int a = a; // no-warning: used to signal intended lack of initialization. 24 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initial… 25 int c = (c + c); // expected-warning 2 {{variable 'c' is uninitialized when used within its own ini… 26 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used wit… 27 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initia… 37 int l = k ? l : l; // expected-warning 2{{variable 'l' is uninitialized when used within its own i… 38 int m = 1 + (k ? m : m); // expected-warning 2{{variable 'm' is uninitialized when used within its… 39 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initializ… 40 int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its own … 41 const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within it… [all …]
|
/external/clang/test/Preprocessor/ |
D | pragma_microsoft.c | 48 __pragma(warning(push)); \ 49 __pragma(warning(disable: 10000)); \ 51 __pragma(warning(pop)); \ 56 __pragma() // expected-warning{{unknown pragma ignored}} in f() 59 // If we ever actually *support* __pragma(warning(disable: x)), in f() 60 // this warning should go away. in f() 61 MACRO_WITH__PRAGMA // expected-warning {{lower precedence}} \ in f() 63 // CHECK: #pragma warning(push) in f() 64 // CHECK: #pragma warning(disable: 10000) in f() 66 // CHECK: #pragma warning(pop) in f() [all …]
|
/external/clang/test/PCH/ |
D | cxx-traits.h | 6 struct __is_pod { // expected-warning {{keyword '__is_pod' will be made available as an identifier … 11 struct __is_empty { // expected-warning {{keyword '__is_empty' will be made available as an identif… 20 struct __is_abstract {}; // expected-warning {{made available}} 21 struct __is_arithmetic {}; // expected-warning {{made available}} 22 struct __is_array {}; // expected-warning {{made available}} 23 struct __is_assignable {}; // expected-warning {{made available}} 24 struct __is_base_of {}; // expected-warning {{made available}} 25 struct __is_class {}; // expected-warning {{made available}} 26 struct __is_complete_type {}; // expected-warning {{made available}} 27 struct __is_compound {}; // expected-warning {{made available}} [all …]
|