/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
H A D | timerfd.cpp | 14 struct itimerspec its; in main() local 15 its.it_value.tv_sec = 0; in main() 16 its.it_value.tv_nsec = 1000000; in main() 17 its.it_interval.tv_sec = its.it_value.tv_sec; in main() 18 its.it_interval.tv_nsec = its.it_value.tv_nsec; in main() 20 int res = timerfd_settime(fd, 0, &its, NULL); in main() 24 res = timerfd_settime(fd, 0, &its, &its2); in main() 26 assert(its2.it_interval.tv_sec == its.it_interval.tv_sec); in main() 27 assert(its2.it_interval.tv_nsec == its.it_interval.tv_nsec); in main() 28 assert(its2.it_value.tv_sec <= its.it_value.tv_sec); in main() [all …]
|
/llvm-project/clang/test/SemaCXX/ |
H A D | uninitialized.cpp | 26 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initialization}} 27 int c = (c + c); // expected-warning 2 {{variable 'c' is uninitialized when used within its own initialization}} 28 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used within its own initialization}} 29 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initialization}} 39 int l = k ? l : l; // expected-warning 2{{variable 'l' is uninitialized when used within its own initialization}} 40 int m = 1 + (k ? m : m); // expected-warning 2{{variable 'm' is uninitialized when used within its own initialization}} 41 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initialization}} 42 int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its own initialization}} 43 const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within its own initialization}} 44 int q = moved(std::move(q)); // expected-warning {{variable 'q' is uninitialized when used within its ow [all...] |
H A D | code-seg1.cpp | 8 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 12 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 13 // expected-error@-2 {{derived class must specify the same code segment as its base classes}} 22 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 23 // expected-error@-2 {{derived class must specify the same code segment as its base classes}} 28 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 29 // expected-error@-2 {{derived class must specify the same code segment as its base classes}} 49 // expected-error@-3 {{derived class must specify the same code segment as its base classes}} 55 // expected-error@-3 {{derived class must specify the same code segment as its base classes}} 59 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} [all …]
|
H A D | warn-reinterpret-base-class.cpp | 121 …// expected-warning@+2 {{'reinterpret_cast' to class 'DVA *' from its virtual base 'A *' behaves d… in reinterpret_pointer_downcast() 126 …// expected-warning@+2 {{'reinterpret_cast' to class 'DDVA *' from its virtual base 'A *' behaves … in reinterpret_pointer_downcast() 131 …// expected-warning@+2 {{'reinterpret_cast' to class 'DMA *' from its virtual base 'A *' behaves d… in reinterpret_pointer_downcast() 154 …// expected-warning@+2 {{'reinterpret_cast' to class 'DVA &' from its virtual base 'A' behaves dif… in reinterpret_reference_downcast() 159 …// expected-warning@+2 {{'reinterpret_cast' to class 'DDVA &' from its virtual base 'A' behaves di… in reinterpret_reference_downcast() 164 …// expected-warning@+2 {{'reinterpret_cast' to class 'DMA &' from its virtual base 'A' behaves dif… in reinterpret_reference_downcast() 184 …// expected-warning@+2 {{'reinterpret_cast' from class 'DVA *' to its virtual base 'A *' behaves d… in reinterpret_pointer_upcast() 189 …// expected-warning@+2 {{'reinterpret_cast' from class 'DDVA *' to its virtual base 'A *' behaves … in reinterpret_pointer_upcast() 194 …// expected-warning@+2 {{'reinterpret_cast' from class 'DDVA *' to its virtual base 'DA *' behaves… in reinterpret_pointer_upcast() 199 …// expected-warning@+2 {{'reinterpret_cast' from class 'DMA *' to its virtual base 'A *' behaves d… in reinterpret_pointer_upcast() [all …]
|
H A D | tautological-negation-compare.cpp | 8 if (x || !x) {} // expected-warning {{'||' of a value and its negation always evaluates to true}} in test_int() 9 if (!x || x) {} // expected-warning {{'||' of a value and its negation always evaluates to true}} in test_int() 10 if (x && !x) {} // expected-warning {{'&&' of a value and its negation always evaluates to false}} in test_int() 11 if (!x && x) {} // expected-warning {{'&&' of a value and its negation always evaluates to false}} in test_int() 14 …if (x || (!x)) {} // expected-warning {{'||' of a value and its negation always evaluates to true}} in test_int() 15 …if (!(x) || x) {} // expected-warning {{'||' of a value and its negation always evaluates to true}} in test_int() 39 …if (f.val || !f.val) {} // expected-warning {{'||' of a value and its negation always evaluates to… in test_int() 40 …if (!f.val && f.val) {} // expected-warning {{'&&' of a value and its negation always evaluates to… in test_int()
|
H A D | code-seg.cpp | 28 //expected-error@-1 {{derived class must specify the same code segment as its base classes}} 31 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 34 // expected-error@-1 {{derived class must specify the same code segment as its base classes}} 41 // expected-error@37 {{derived class must specify the same code segment as its base classes}} 45 // expected-error@38 {{derived class must specify the same code segment as its base classes}} 49 // expected-error@38 {{derived class must specify the same code segment as its base classes}} 61 …// expected-error@-1 {{overriding virtual function must specify the same code segment as its overr… 71 …// expected-error@-1 {{overriding virtual function must specify the same code segment as its overr… 74 …// expected-error@-1 {{overriding virtual function must specify the same code segment as its overr…
|
/llvm-project/clang/test/CXX/class/class.mem/ |
H A D | p13.cpp | 8 static int X0; // expected-error{{member 'X0' has the same name as its class}} 18 enum X1 { }; // expected-error{{member 'X1' has the same name as its class}} 22 struct X1a; // expected-error{{member 'X1a' has the same name as its class}} 26 typedef int X2; // expected-error{{member 'X2' has the same name as its class}} 30 using X2a = int; // expected-error{{member 'X2a' has the same name as its class}} 36 template<typename T> struct X2b; // expected-error{{member 'X2b' has the same name as its class}} 42 …template<typename T> static int X2d; // expected-error{{member 'X2d' has the same name as its clas… 45 …template<typename T> using X2e = int; // expected-error{{member 'X2e' has the same name as its cla… 51 X3 // expected-error{{member 'X3' has the same name as its class}} 89 struct D0 : B { using B::D0; }; // expected-error {{member 'D0' has the same name as its class}} [all …]
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/performance/ |
H A D | enum-size.cpp | 15 …size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the bas… 22 …size: 2 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the bas… 28 …size: 2 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the bas… 35 … size: 4 bytes) than necessary for its value set, consider using 'std::int8_t' (1 byte) as the bas… 44 …size: 4 bytes) than necessary for its value set, consider using 'std::int16_t' (2 bytes) as the ba… 51 … size: 4 bytes) than necessary for its value set, consider using 'std::int8_t' (1 byte) as the bas… 77 …ize: 4 bytes) than necessary for its value set, consider using 'std::uint16_t' (2 bytes) as the ba… 84 …ize: 4 bytes) than necessary for its value set, consider using 'std::uint16_t' (2 bytes) as the ba…
|
/llvm-project/clang/test/Sema/ |
H A D | scope-check.c | 4 goto L; // expected-error{{cannot jump from this goto statement to its label}} in test1() 12 goto L; // expected-error{{cannot jump from this goto statement to its label}} in test2() 21 goto L; // expected-error{{cannot jump from this goto statement to its label}} in test3() 28 goto L; // expected-error{{cannot jump from this goto statement to its label}} in test4() 61 goto L2; // expected-error {{cannot jump from this goto statement to its label}} in test8() 67 goto L3; // expected-error {{cannot jump from this goto statement to its label}} in test8() 72 goto L4; // expected-error {{cannot jump from this goto statement to its label}} in test8() 95 … goto L8; // expected-error {{cannot jump from this goto statement to its label}} in test8() 107 goto L10; // fixme-error {{cannot jump from this goto statement to its label}} in test8() 127 goto L1; // expected-error {{cannot jump from this goto statement to its label}} in test8() [all …]
|
/llvm-project/clang/docs/ |
H A D | DataFlowSanitizer.rst | 19 specific class of bugs on its own. Instead, it provides a generic 53 will not alter its behavior. To use DataFlowSanitizer, the program 56 the propagation of tags through the program according to its data flow. 89 satisfied for functions which do not write to user-accessible memory). Its 91 * ``functional`` -- Like ``discard``, except that the label of its return value 92 is the union of the label of its arguments. 95 the original function or provide its own implementation. This category is 116 native ABI. Its arguments will be assumed to be unlabelled, but it will 127 # malloc only writes to its internal data structures, not user-accessible memory. 160 ignore the labels of pointers in load instructions. Its default value is true. [all …]
|
/llvm-project/flang/test/Semantics/ |
H A D | label05.f90 | 6 ! CHECK: error: Label '80' is in a construct that prevents its use as a branch target here 7 ! CHECK: error: Label '90' is in a construct that prevents its use as a branch target here 8 ! CHECK: error: Label '91' is in a construct that prevents its use as a branch target here 9 ! CHECK: error: Label '92' is in a construct that prevents its use as a branch target here 10 ! CHECK: error: Label '30' is in a construct that prevents its use as a branch target here 11 ! CHECK: error: Label '31' is in a construct that prevents its use as a branch target here 12 ! CHECK-NOT: error: Label '32' is in a construct that prevents its use as a branch target here 13 ! CHECK: error: Label '40' is in a construct that prevents its use as a branch target here 14 ! CHECK: error: Label '41' is in a construct that prevents its use as a branch target here 15 ! CHECK-NOT: error: Label '42' is in a construct that prevents its use as a branch target here
|
H A D | resolve114.f90 | 37 !PORTABILITY: Procedure pointer 'p1' should not have an ELEMENTAL intrinsic as its interface 39 !PORTABILITY: Procedure pointer 'p2' should not have an ELEMENTAL intrinsic as its interface 49 !PORTABILITY: Procedure pointer 'p1' should not have an ELEMENTAL intrinsic as its interface 51 !PORTABILITY: Procedure pointer 'p2' should not have an ELEMENTAL intrinsic as its interface 63 !PORTABILITY: Procedure pointer 'p1' should not have an ELEMENTAL intrinsic as its interface 65 !PORTABILITY: Procedure pointer 'p2' should not have an ELEMENTAL intrinsic as its interface 78 !PORTABILITY: Procedure pointer 'p1' should not have an ELEMENTAL intrinsic as its interface 80 !PORTABILITY: Procedure pointer 'p2' should not have an ELEMENTAL intrinsic as its interface 90 !PORTABILITY: Procedure pointer 'p1' should not have an ELEMENTAL intrinsic as its interface 93 !PORTABILITY: Procedure pointer 'p2' should not have an ELEMENTAL intrinsic as its interface
|
H A D | call37.f90 | 31 …!WARNING: The global subprogram 'constlen' is not compatible with its local procedure declaration … 35 …!WARNING: The global subprogram 'assumedlen' is not compatible with its local procedure declaratio… 39 …!WARNING: The global subprogram 'exprlen' is not compatible with its local procedure declaration (… 48 …!WARNING: The global subprogram 'constlen' is not compatible with its local procedure declaration … 52 …!WARNING: The global subprogram 'exprlen' is not compatible with its local procedure declaration (… 61 …!WARNING: The global subprogram 'constlen' is not compatible with its local procedure declaration … 66 …!WARNING: The global subprogram 'assumedlen' is not compatible with its local procedure declaratio…
|
/llvm-project/clang/test/SemaOpenACC/ |
H A D | no-branch-in-out.c | 216 goto LABEL; // expected-error{{cannot jump from this goto statement to its label}} in Goto() 222 goto LABEL_IN; // expected-error{{cannot jump from this goto statement to its label}} in Goto() 230 goto LABEL_IN2; // expected-error{{cannot jump from this goto statement to its label}} in Goto() 251 goto ANOTHER_LOOP; // expected-error{{cannot jump from this goto statement to its label}} in Goto() 257 goto ANOTHER_LOOP2; // expected-error{{cannot jump from this goto statement to its label}} in Goto() 320 goto LABEL4;// expected-error{{cannot jump from this goto statement to its label}} in IndirectGoto1() 325 goto LABEL4;// expected-error{{cannot jump from this goto statement to its label}} in IndirectGoto2() 342 goto LABEL5;// expected-error{{cannot jump from this goto statement to its label}} in IndirectGoto3() 343 goto LABEL5_2;// expected-error{{cannot jump from this goto statement to its label}} in IndirectGoto3() 363 goto LABEL7; // expected-error{{cannot jump from this goto statement to its labe in IndirectGoto4() [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/ |
H A D | avoid-unconditional-preprocessor-if.cpp | 3 …ssor condition is always 'false', consider removing both the condition and its contents [readabili… 8 …cessor condition is always 'true', consider removing condition but leaving its contents [readabili… 17 …cessor condition is always 'true', consider removing condition but leaving its contents [readabili… 22 …ssor condition is always 'false', consider removing both the condition and its contents [readabili… 27 …cessor condition is always 'true', consider removing condition but leaving its contents [readabili… 32 …ssor condition is always 'false', consider removing both the condition and its contents [readabili… 37 …ssor condition is always 'false', consider removing both the condition and its contents [readabili… 43 …cessor condition is always 'true', consider removing condition but leaving its contents [readabili… 49 …cessor condition is always 'true', consider removing condition but leaving its contents [readabili… 54 …ssor condition is always 'false', consider removing both the condition and its contents [readabili…
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
H A D | misplaced-pointer-arithmetic-in-alloc.cpp | 11 …: arithmetic operation is applied to the result of operator new() instead of its size-like argument in bad_new() 15 …: arithmetic operation is applied to the result of operator new() instead of its size-like argument in bad_new() 19 …: arithmetic operation is applied to the result of operator new() instead of its size-like argument in bad_new() 23 …: arithmetic operation is applied to the result of operator new() instead of its size-like argument in bad_new() 27 …: arithmetic operation is applied to the result of operator new() instead of its size-like argument in bad_new() 34 …arithmetic operation is applied to the result of operator new[]() instead of its size-like argument in bad_new_array() 38 …arithmetic operation is applied to the result of operator new[]() instead of its size-like argument in bad_new_array() 42 …arithmetic operation is applied to the result of operator new[]() instead of its size-like argument in bad_new_array() 46 …arithmetic operation is applied to the result of operator new[]() instead of its size-like argument in bad_new_array() 50 …arithmetic operation is applied to the result of operator new[]() instead of its size-like argument in bad_new_array() [all …]
|
H A D | misplaced-pointer-arithmetic-in-alloc.c | 11 …arning: arithmetic operation is applied to the result of malloc() instead of its size-like argument in bad_malloc() 15 …arning: arithmetic operation is applied to the result of malloc() instead of its size-like argument in bad_malloc() 19 …arning: arithmetic operation is applied to the result of malloc() instead of its size-like argument in bad_malloc() 23 …arning: arithmetic operation is applied to the result of malloc() instead of its size-like argument in bad_malloc() 27 …arning: arithmetic operation is applied to the result of malloc() instead of its size-like argument in bad_malloc() 34 …arning: arithmetic operation is applied to the result of alloca() instead of its size-like argument in bad_alloca() 40 …rning: arithmetic operation is applied to the result of realloc() instead of its size-like argument in bad_realloc() 46 …arning: arithmetic operation is applied to the result of calloc() instead of its size-like argument in bad_calloc() 54 …ing: arithmetic operation is applied to the result of alloc_ptr() instead of its size-like argument in bad_indirect_alloc()
|
H A D | infinite-loop.cpp | 8 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: this loop is infinite; none of its condition variables… in simple_infinite_loop1() 23 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: this loop is infinite; none of its condition variables… in simple_infinite_loop1() 28 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: this loop is infinite; none of its condition variables… in simple_infinite_loop1() 37 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: this loop is infinite; none of its condition variables… in simple_infinite_loop2() 42 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: this loop is infinite; none of its condition variables… in simple_infinite_loop2() 47 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: this loop is infinite; none of its condition variables… in simple_infinite_loop2() 52 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: this loop is infinite; none of its condition variables… in simple_infinite_loop2() 57 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: this loop is infinite; none of its condition variables… in simple_infinite_loop2() 117 // Not an error, since loop variable is modified in its condition part. in simple_not_infinite2() 251 // class can be found in its condition. in member_expr1() [all …]
|
/llvm-project/clang/test/CodeGen/ |
H A D | aarch64-sme-inline-streaming-attrs.c |
|
/llvm-project/clang/test/Analysis/ |
H A D | iterator-range.cpp | 98 --i; // expected-warning{{Iterator decremented ahead of its valid range}} in decr_begin() 99 // expected-note@-1{{Iterator decremented ahead of its valid range}} in decr_begin() 126 i--; // expected-warning{{Iterator decremented ahead of its valid range}} in begin_decr() 127 // expected-note@-1{{Iterator decremented ahead of its valid range}} in begin_decr() 224 i -= 2; // expected-warning{{Iterator decremented ahead of its valid range}} in decr_by_2_begin() 225 // expected-note@-1{{Iterator decremented ahead of its valid range}} in decr_by_2_begin() 230 i -= 2; // expected-warning{{Iterator decremented ahead of its valid range}} in decr_by_2_behind_begin() 231 // expected-note@-1{{Iterator decremented ahead of its valid range}} in decr_by_2_behind_begin() 259 auto j = i - 2; // expected-warning{{Iterator decremented ahead of its valid range}} in decr_by_2_copy_begin() 260 // expected-note@-1{{Iterator decremented ahead of its valid range}} in decr_by_2_copy_begin() [all …]
|
/llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/ |
H A D | p7.cpp | 25 … expected-error {{declaration with trailing return type must be the only declaration in its group}} in g() 28 … expected-error {{declaration with trailing return type must be the only declaration in its group}} in g() 30 … expected-error {{declaration with trailing return type must be the only declaration in its group}} in g() 41 … expected-error {{declaration with trailing return type must be the only declaration in its group}} 50 …, // expected-error {{function with deduced return type must be the only declaration in its group}} 52 …, // expected-error {{function with deduced return type must be the only declaration in its group}} 54 …, // expected-error {{function with deduced return type must be the only declaration in its group}}
|
/llvm-project/flang/docs/ |
H A D | IORuntimeInternals.md | 23 to its clients, which are of course the sequences of calls generated by 33 language standard in its clauses 12 (I/O statements) and 13 (`FORMAT`). 90 its source file path name and line number and uses them to construct 131 making callbacks to an instance of its class template argument 141 Clients of `FormatControl` instantiations call its `GetNextDataEdit()` 147 expected by `FormatControl` from its class template actual arguments. 160 the common parts of its state in this subclass of `ConnectionAttributes`. 169 interoperable descriptor used to access its elements as records. 179 Its interface enables its clients to define a "frame" (my term, 274 available to hold its `IoStatementBase` subclass or `IoStatementState`. [all …]
|
/llvm-project/clang/test/CodeGenCXX/ |
H A D | vtable-linkage.cpp | 95 // B has a key function that is not defined in this translation unit so its vtable 99 // C has no key function, so its vtable should have weak_odr linkage 106 // D has a key function that is defined in this translation unit so its vtable is 113 // in this translation unit, so its vtable should have external 120 // defined in this translation unit, so its vtable should have 127 // function, so its vtable should have weak_odr linkage 133 // defined in this translation unit, so its vtable should have 140 // so its vtable should have linkonce_odr linkage. 146 // key function, so its vtable should have external linkage. 172 // its vtable should have linkonce_odr linkage. [all …]
|
H A D | vtable-linkage-address-space.cpp | 95 // B has a key function that is not defined in this translation unit so its vtable 99 // C has no key function, so its vtable should have weak_odr linkage 106 // D has a key function that is defined in this translation unit so its vtable is 113 // in this translation unit, so its vtable should have external 120 // defined in this translation unit, so its vtable should have 127 // function, so its vtable should have weak_odr linkage 133 // defined in this translation unit, so its vtable should have 140 // so its vtable should have linkonce_odr linkage. 146 // key function, so its vtable should have external linkage. 172 // its vtable should have linkonce_odr linkage. [all …]
|
/llvm-project/clang/test/ARCMT/ |
H A D | checking.m | 93 …expected-error {{it is not safe to remove an unused 'autorelease' message; its receiver may be des… 96 …expected-error {{it is not safe to remove an unused 'autorelease' message; its receiver may be des… 202 …pected-note {{declaration in interface is not in the 'init' family because its result type is not … 205 …pected-note {{declaration in interface is not in the 'init' family because its result type is not … 206 …pected-note {{declaration in interface is not in the 'init' family because its result type is not … 240 - (id) init10 { return 0; } // expected-error {{method implementation does not match its declaratio… 246 …-error {{method was declared as an 'init' method, but its implementation doesn't match because its… 248 …-error {{method was declared as an 'init' method, but its implementation doesn't match because its… 249 …-error {{method was declared as an 'init' method, but its implementation doesn't match because its… 250 …-error {{method was declared as an 'init' method, but its implementation doesn't match because its… [all …]
|