/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/ |
H A D | suspicious-call-argument.cpp | 33 …:3: warning: 1st argument 'kkkkkk' (passed to 'llllll') looks like it might be swapped with the 2n… in const_ref_value_swapped() 60 …:3: warning: 1st argument 'nnnnnn' (passed to 'mmmmmm') looks like it might be swapped with the 2n… in const_nonconst_swap2() 76 …:3: warning: 1st argument 'nnnnnn' (passed to 'mmmmmm') looks like it might be swapped with the 2n… in const_nonconst_pointers_swapped2() 88 …:3: warning: 1st argument 'qqqqqq' (passed to 'pppppp') looks like it might be swapped with the 2n… in pointer_array_swap() 109 …:3: warning: 1st argument 'qqqqqq' (passed to 'pppppp') looks like it might be swapped with the 2n… in multilevel_pointer_swap() 114 …:3: warning: 1st argument 'mmmmmm' (passed to 'nnnnnn') looks like it might be swapped with the 2n… in multilevel_pointer_swap() 119 …:3: warning: 1st argument 'ssssss' (passed to 'rrrrrr') looks like it might be swapped with the 2n… in multilevel_pointer_swap() 167 …:3: warning: 1st argument 'qqqqqq' (passed to 'pppppp') looks like it might be swapped with the 2n… in multilevel_array_swap() 193 …:3: warning: 1st argument 'cccccc' (passed to 'bbbbbb') looks like it might be swapped with the 2n… in multilevel_array_swap() 212 …:3: warning: 1st argument 'bbbbbb' (passed to 'aaaaaa') looks like it might be swapped with the 2n… in multilevel_pointer_array_swap() [all …]
|
/llvm-project/openmp/runtime/test/tasking/ |
H A D | omp_task_priority2.c | 14 int passed; in main() local 15 passed = (omp_get_max_task_priority() == 2); in main() 17 if(!passed) { in main() 31 val = passed++; in main() 39 val = passed++; in main() 47 val = passed++; in main() 55 val = passed++; in main() 65 wait = passed; in main() 79 val = passed++; in main() 87 val = passed++; in main() [all …]
|
/llvm-project/clang/test/CodeGen/LoongArch/ |
H A D | abi-lp64d.c | 63 /// a. Argument is passed in a single argument register, or on the stack by 65 /// i. If the argument is floating-point type, the argument is passed in FAR. if 66 /// no FAR is available, it’s passed in GAR. If no GAR is available, it’s 67 /// passed on the stack. When passed in registers or on the stack, 70 /// ii. If the argument is integer or pointer type, the argument is passed in 71 /// GAR. If no GAR is available, it’s passed on the stack. When passed in 76 /// a. The argument is passed in a pair of GAR, with the low-order GRLEN bits in 79 /// low-order GRLEN bits are passed in the register and the high-order GRLEN 80 /// bits are passed on the stack. If no GAR is available, it’s passed on the 113 /// the structure is passed through the GAR by value passing; If no GAR is [all …]
|
/llvm-project/mlir/utils/tree-sitter-mlir/ |
H A D | README.md | 9 Math, 100% passed 10 Builtin, 100% passed 11 Func, 100% passed 12 ControlFlow, 100% passed 13 Tensor, 93.33% passed 14 Arith, 83.33% passed 15 SCF, 88% passed 16 Affine, 73.08% passed 17 Linalg, 51.11% passed
|
/llvm-project/clang/test/SemaCXX/ |
H A D | attr-nonnull.cpp | 17 S s(0); // expected-warning{{null passed}} in test() 19 s.f(0, ""); // expected-warning{{null passed}} in test() 21 s.g("", 0, ""); // expected-warning{{null passed}} in test() 31 f1(0); // expected-warning{{null passed to a callee that requires a non-null argument}} in test_f1() 32 f2(0, 0); // expected-warning{{null passed to a callee that requires a non-null argument}} in test_f1() 40 f(static_cast<char*>((void*)0)); // expected-warning{{null passed}} in g() 41 f(static_cast<char*>(0)); // expected-warning{{null passed}} in g() 52 (void)(x == 0); // expected-warning{{null passed}} in test() 53 (void)(x != 0); // expected-warning{{null passed}} in test() 66 constexpr int i12 = f1(&c, 0); //expected-error {{constant expression}} expected-note {{null passed… [all …]
|
H A D | warn-uninitialized-const-reference.cpp | 29 …const_ref_use(i); // expected-warning {{variable 'i' is uninitialized when passed as a… in f() 30 …n initialization}} expected-warning {{variable 'j' is uninitialized when passed as a const referen… in f() 31 …A a1 = const_ref_use_A(a1); // expected-warning {{variable 'a1' is uninitialized when passed as … in f() 34 …A a3(const_ref_use_A(a3)); // expected-warning {{variable 'a3' is uninitialized when passed as … in f() 35 … initialization}} expected-warning {{variable 'a4' is uninitialized when passed as a const referen… in f() 50 …dont_ignore_non_empty(l); // expected-warning {{variable 'l' is uninitialized when passed as a con… in f() 52 …dont_ignore_block(l1); // expected-warning {{variable 'l1' is uninitialized when passed as a const… in f() 54 …who_knows(l2); // expected-warning {{variable 'l2' is uninitialized when passed as a const referen… in f()
|
/llvm-project/clang/test/Analysis/ |
H A D | null-deref-path-notes.c | 16 …memcpy(destination + 0, source, 10); // expected-warning{{Null pointer passed as 1st argument to m… in f1() 17 … // expected-note@-1{{Null pointer passed as 1st argument to memory copy function}} in f1() 22 …memcpy(destination - 0, source, 10); // expected-warning{{Null pointer passed as 1st argument to m… in f2() 23 … // expected-note@-1{{Null pointer passed as 1st argument to memory copy function}} in f2() 29 …memcpy(destination, source, 10); // expected-warning{{Null pointer passed as 1st argument to memor… in f3() 30 … // expected-note@-1{{Null pointer passed as 1st argument to memory copy function}} in f3() 36 …memcpy(destination, source, 10); // expected-warning{{Null pointer passed as 1st argument to memor… in f4() 37 … // expected-note@-1{{Null pointer passed as 1st argument to memory copy function}} in f4() 43 …memcpy(destination2, source, 10); // expected-warning{{Null pointer passed as 1st argument to memo… in f5() 44 … // expected-note@-1{{Null pointer passed as 1st argument to memory copy function}} in f5() [all …]
|
H A D | taint-diagnostic-visitor.c | 25 system(buf); // expected-warning {{Untrusted data is passed to a system call}} // expected-note {{Untrusted data is passed to a system call (CERT/STR02-C. Sanitize data passed to complex subsystems)}} in taintDiagnostic() 63 res = system(cmd); // expected-warning{{Untrusted data is passed to a system call}} in taintDiagnosticPropagation() 64 // expected-note@-1{{Untrusted data is passed to a system call}} in taintDiagnosticPropagation() 80 res = system(cmd); // expected-warning{{Untrusted data is passed to a system call}} in taintDiagnosticPropagation2() 81 // expected-note@-1{{Untrusted data is passed to a system call}} in taintDiagnosticPropagation2() 91 system(buf);// expected-warning {{Untrusted data is passed to a system call}} in testReadStdIn() 92 // expected-note@-1 {{Untrusted data is passed to a system call (CERT/STR02-C. Sanitize data passed t in testReadStdIn() [all...] |
H A D | nullability.mm | 99 takesNonnull(p); // expected-warning {{Nullable pointer is passed to a callee that requires a non-null 1st parameter}} 107 case 5: takesAttrNonnull(p); break; // expected-warning {{Nullable pointer is passed to}} 121 takesNonnull(q); // expected-warning {{Null passed to a callee that requires a non-null 1st parameter}} 143 case 6: testMultiParamChecking(nonnull, nullable, nullable); break; // expected-warning {{Nullable pointer is passed to a callee that requires a non-null 3rd parameter}} 144 case 7: testMultiParamChecking(nullable, nullable, nonnull); // expected-warning {{Nullable pointer is passed to a callee that requires a non-null 1st parameter}} 145 case 8: testMultiParamChecking(nullable, nullable, nullable); // expected-warning {{Nullable pointer is passed to a callee that requires a non-null 1st parameter}} 154 case 3: testMultiParamChecking(nonnull, nullable, nullable); break; // expected-warning {{Nullable pointer is passed to a callee that requires a non-null 3rd parameter}} 155 case 4: testMultiParamChecking(nullable, nullable, nonnull); // expected-warning {{Nullable pointer is passed to a callee that requires a non-null 1st parameter}} 156 case 5: testMultiParamChecking(nullable, nullable, nullable); // expected-warning {{Nullable pointer is passed to a callee that requires a non-null 1st parameter}} 190 [o takesNonnull:shouldBeNullable]; // expected-warning {{Nullable pointer is passed t [all...] |
/llvm-project/clang/test/SemaObjC/ |
H A D | nonnull.m | 33 …func1(0, cp2, i1); // expected-warning {{null passed to a callee that requires a non-null argumen… 34 …func1(cp1, 0, i1); // expected-warning {{null passed to a callee that requires a non-null argumen… 38 …func3(0, i2, cp3, i3); // expected-warning {{null passed to a callee that requires a non-null argu… 39 …func3(cp3, i2, 0, i3); // expected-warning {{null passed to a callee that requires a non-null arg… 41 func4(0, cp1); // expected-warning {{null passed to a callee that requires a non-null argument}} 42 func4(cp1, 0); // expected-warning {{null passed to a callee that requires a non-null argument}} 63 …_dispatch_queue_push_list(0); // expected-warning {{null passed to a callee that requires a non-nu… 89 …[object doSomethingWithNonNullPointer:NULL:1:NULL]; // expected-warning 2 {{null passed to a calle… 90 …[object doSomethingWithNonNullPointer:vp:1:NULL]; // expected-warning {{null passed to a callee th… 91 …[NSObject doSomethingClassyWithNonNullPointer:NULL]; // expected-warning {{null passed to a callee… [all …]
|
H A D | format-cstrings-warning.m | 32 …g"]; // expected-warning {{using %s directive in NSString which is being passed as a formatting ar… 33 …e"]; // expected-warning {{using %s directive in NSString which is being passed as a formatting ar… 34 … 2]; // expected-warning {{using %s directive in NSString which is being passed as a formatting ar… 35 …t]; // expected-warning {{using %s directive in NSString which is being passed as a formatting ar… 36 …e"]; // expected-warning {{using %s directive in NSString which is being passed as a formatting ar… 62 …st); // expected-warning {{using %s directive in CFString which is being passed as a formatting ar… 63 …st); // expected-warning {{using %s directive in CFString which is being passed as a formatting ar… 73 …o"); // expected-warning {{using %s directive in CFString which is being passed as a formatting ar… 75 …o"); // expected-warning {{using %s directive in CFString which is being passed as a formatting ar… 76 …o"); // expected-warning {{using %s directive in CFString which is being passed as a formatting ar…
|
/llvm-project/llvm/test/tools/opt-viewer/Inputs/suppress/ |
H A D | s.opt.yaml | 1 --- !Passed 15 --- !Passed 29 --- !Passed 43 --- !Passed 57 --- !Passed 71 --- !Passed 97 --- !Passed 119 --- !Passed 133 --- !Passed 147 --- !Passed [all …]
|
/llvm-project/clang/test/APINotes/ |
H A D | nullability.m | 18 …[a transform: 0 integer: 0]; // expected-warning{{null passed to a callee that requires a non-null… 21 …[a setNonnullAInstance: 0]; // expected-warning{{null passed to a callee that requires a non-null … 23 …a.nonnullAInstance = 0; // expected-warning{{null passed to a callee that requires a non-null argu… 27 …[A setNonnullAClass: 0]; // expected-warning{{null passed to a callee that requires a non-null arg… 29 …[a setNonnullABoth: 0]; // expected-warning{{null passed to a callee that requires a non-null argu… 30 …[A setNonnullABoth: 0]; // expected-warning{{null passed to a callee that requires a non-null argu… 32 …[a setInternalProperty: 0]; // expected-warning{{null passed to a callee that requires a non-null … 37 …[a setExplicitNullableInstance: 0]; // expected-warning{{null passed to a callee that requires a n… 40 …[a setExplicitNonnullInstance: 0]; // expected-warning{{null passed to a callee that requires a no…
|
/llvm-project/clang/test/Sema/ |
H A D | warn-documentation.cpp | 114 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 118 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 122 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 127 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 134 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 148 // expected-warning@+1 {{empty paragraph passed to '\brief' command}} 207 /// expected-warning@+1 {{empty paragraph passed to '\retval' command}} 224 // expected-warning@+1 {{empty paragraph passed to '\param' command}} 229 // expected-warning@+1 {{empty paragraph passed to '\param' command}} 324 // expected-warning@+1 {{empty paragraph passed to '\param' command}} [all …]
|
H A D | atomic-ops.c | 757 __c11_atomic_init((volatile _Atomic(int)*)0, 42); // expected-warning {{null passed to a callee that requires a non-null argument}} in nullPointerWarning() 758 __c11_atomic_init((_Atomic(int)*)0, 42); // expected-warning {{null passed to a callee that requires a non-null argument}} in nullPointerWarning() 759 __c11_atomic_store((volatile _Atomic(int)*)0, 42, memory_order_relaxed); // expected-warning {{null passed to a callee that requires a non-null argument}} in nullPointerWarning() 760 __c11_atomic_store((_Atomic(int)*)0, 42, memory_order_relaxed); // expected-warning {{null passed to a callee that requires a non-null argument}} in nullPointerWarning() 761 (void)__c11_atomic_load((volatile _Atomic(int)*)0, memory_order_relaxed); // expected-warning {{null passed to a callee that requires a non-null argument}} in nullPointerWarning() 762 (void)__c11_atomic_load((_Atomic(int)*)0, memory_order_relaxed); // expected-warning {{null passed to a callee that requires a non-null argument}} in nullPointerWarning() 763 (void)__c11_atomic_exchange((volatile _Atomic(int)*)0, 42, memory_order_relaxed); // expected-warning {{null passed to a callee that requires a non-null argument}} in nullPointerWarning() 764 (void)__c11_atomic_exchange((_Atomic(int)*)0, 42, memory_order_relaxed); // expected-warning {{null passed to a callee that requires a non-null argument}} in nullPointerWarning() 765 (void)__c11_atomic_compare_exchange_weak((volatile _Atomic(int)*)0, &i, 42, memory_order_relaxed, memory_order_relaxed); // expected-warning {{null passed to a callee that requires a non-null argument}} in nullPointerWarning() 766 (void)__c11_atomic_compare_exchange_weak((_Atomic(int)*)0, &i, 42, memory_order_relaxed, memory_order_relaxed); // expected-warning {{null passed t in nullPointerWarning() [all...] |
H A D | nonnull.c | 4 // if nullptr is passed to function with nonnull attribute. 21 …Class_init(0, "Hello World"); // expected-warning {{null passed to a callee that requires a non-nu… in main() 33 baz(0); // expected-warning {{null passed to a callee that requires a non-null argument}} in test_baz() 53 g(0); // expected-warning{{null passed to a callee that requires a non-null argument}} in PR18795() 56 PR18795(0); // expected-warning{{null passed to a callee that requires a non-null argument}} in PR18795_helper() 62 vararg1(1, (void*)0); // expected-warning{{null passed}} in vararg1_test() 63 vararg1(2, (void*)0, (void*)0); // expected-warning{{null passed}} in vararg1_test() 70 vararg2(1, (void*)0); // expected-warning{{null passed}} in vararg2_test() 71 vararg2(2, (void*)0, (void*)0); // expected-warning 2{{null passed}} in vararg2_test() 77 vararg3(1, (void*)0); // expected-warning{{null passed}} in vararg3_test() [all …]
|
/llvm-project/flang/test/Semantics/ |
H A D | resolve52.f90 | 3 ! The passed-object dummy argument shall be a scalar, nonpointer, nonallocatable 62 !ERROR: Passed-object dummy argument 'x' of procedure 'a' may not have the POINTER attribute 64 !ERROR: Passed-object dummy argument 'x' of procedure 'b' may not have the ALLOCATABLE attribute 66 !ERROR: Passed-object dummy argument 'f' of procedure 'c' must be a data object 68 !ERROR: Passed-object dummy argument 'x' of procedure 'd' must be scalar 94 !ERROR: Passed-object dummy argument 'x' of procedure 'a' must be of type 't1' but is 'REAL(4)' 99 !ERROR: Passed-object dummy argument 'y' of procedure 's' must be of type 't2' but is 'TYPE(t1)' 113 !ERROR: Passed-object dummy argument 'x' of procedure 'a' has non-assumed length parameter 'l' 125 …!ERROR: Passed-object dummy argument 'x' of procedure 'a' may not be polymorphic because 't' is no… 138 …!ERROR: Passed-object dummy argument 'x' of procedure 's' must be polymorphic because 't' is exten…
|
H A D | call02.f90 | 30 !ERROR: Non-intrinsic ELEMENTAL procedure 'elem' may not be passed as an actual argument 41 !ERROR: Non-intrinsic ELEMENTAL procedure 'elem' may not be passed as an actual argument 56 !ERROR: Statement function 'sf' may not be passed as an actual argument 58 !ERROR: Statement function 'sf' may not be passed as an actual argument 80 !ERROR: Non-intrinsic ELEMENTAL procedure 'elem01' may not be passed as an actual argument 82 !ERROR: Non-intrinsic ELEMENTAL procedure 'elem02' may not be passed as an actual argument 84 !ERROR: Non-intrinsic ELEMENTAL procedure 'elem03' may not be passed as an actual argument 86 !ERROR: Non-intrinsic ELEMENTAL procedure 'elem04' may not be passed as an actual argument 114 !ERROR: Non-intrinsic ELEMENTAL procedure 'elem' may not be passed as an actual argument
|
/llvm-project/llvm/test/tools/opt-viewer/Inputs/basic/ |
H A D | or.yaml | 38 --- !Passed 63 --- !Passed 88 --- !Passed 98 --- !Passed 134 --- !Passed 159 --- !Passed 184 --- !Passed 194 --- !Passed 204 --- !Passed 216 --- !Passed [all …]
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
H A D | move-forwarding-reference.cpp | 20 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: forwarding reference passed to in f1() 27 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: forwarding reference passed to in f2() 36 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: forwarding reference passed to in f3() 44 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: forwarding reference passed to in f4() 53 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: forwarding reference passed to in f5() 58 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: forwarding reference passed to in f5() 100 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: forwarding reference passed to in f9() 103 // Same result if the argument is passed outside of the macro. 108 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: forwarding reference passed to in f10() 116 // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: forwarding reference passed to in f11() [all …]
|
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/mpi/ |
H A D | buffer-deref.rst | 6 This check verifies if a buffer passed to an MPI (Message Passing Interface) 7 function is sufficiently dereferenced. Buffers should be passed as a single 9 types, insufficiently dereferenced buffers can be passed, like for example as 16 // A double pointer is passed to the MPI function. 20 // A multidimensional array is passed to the MPI function. 24 // A pointer to an array is passed to the MPI function.
|
/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZCallingConv.td | 99 // A SwiftSelf is passed in callee-saved R10. 102 // A SwiftError is passed in callee-saved R9. 112 // The first 5 integer arguments are passed in R2-R6. Note that R6 117 // The first 4 float and double arguments are passed in even registers F0-F6. 121 // The first 8 named vector arguments are passed in V24-V31. Sub-128 vectors 122 // are passed in the same way, but they're widened to one of these types 135 // Other vector arguments are passed in 8-byte-aligned 16-byte stack slots. 140 // Other arguments are passed in 8-byte-aligned 8-byte stack slots. 207 // words (8 bytes in 64-Bit mode) where some arguments are passed in registers 211 // The first three register-sized words of the parameter area are passed i [all...] |
/llvm-project/llvm/test/tools/llvm-opt-report/Inputs/ |
H A D | or.yaml | 38 --- !Passed 63 --- !Passed 88 --- !Passed 98 --- !Passed 134 --- !Passed 159 --- !Passed 184 --- !Passed 194 --- !Passed 204 --- !Passed 216 --- !Passed
|
/llvm-project/libcxx/test/libcxx/strings/string.view/ |
H A D | assert.ctor.pointer.pass.cpp | 23 …std::string_view((char const*)NULL), "null pointer passed to non-null argument of char_traits<...>… in main() 25 …std::string_view((char const*)nullptr), "null pointer passed to non-null argument of char_traits<.… in main() 27 …std::string_view((char const*)0), "null pointer passed to non-null argument of char_traits<...>::l… in main() 31 …v == (char const*)nullptr, "null pointer passed to non-null argument of char_traits<...>::length"); in main() 33 … v == (char const*)NULL, "null pointer passed to non-null argument of char_traits<...>::length"); in main() 35 …(char const*)nullptr == v, "null pointer passed to non-null argument of char_traits<...>::length"); in main() 37 … (char const*)NULL == v, "null pointer passed to non-null argument of char_traits<...>::length"); in main()
|
/llvm-project/clang/test/SemaObjCXX/ |
H A D | nullability-pragmas.mm | 17 f2(0); // expected-warning{{null passed to a callee that requires a non-null argument}} 18 f3(0); // expected-warning{{null passed to a callee that requires a non-null argument}} 19 f4(0); // expected-warning{{null passed to a callee that requires a non-null argument}} 20 f5(0); // expected-warning{{null passed to a callee that requires a non-null argument}} 21 f6(0); // expected-warning{{null passed to a callee that requires a non-null argument}} 24 f9(0); // expected-warning{{null passed to a callee that requires a non-null argument}} 25 f10(0); // expected-warning{{null passed to a callee that requires a non-null argument}} 28 [a method1:0]; // expected-warning{{null passed to a callee that requires a non-null argument}}
|