| /llvm-project/clang/test/Sema/ |
| H A D | warn-unreachable.c | 13 goto e; // expected-warning {{will never be executed}} in test1() 17 goto b; // expected-warning {{will never be executed}} in test1() 18 goto a; // expected-warning {{will never be executed}} in test1() 34 dead(); // expected-warning {{will never be executed}} in test2() 38 dead(); // expected-warning {{will never be executed}} in test2() 42 + // expected-warning {{will never be executed}} in test2() 50 goto a4; // expected-warning {{will never be executed}} in test2() 55 dead(); // expected-warning {{will never be executed}} in test2() 69 dead(); // expected-warning {{will never be executed}} in test2() 82 dead(); // expected-warning {{will never be executed}} in test2() [all …]
|
| /llvm-project/clang/test/SemaCXX/ |
| H A D | warn-unreachable.cpp | 35 dead(); // expected-warning {{will never be executed}} in test2() 41 --; // expected-warning {{will never be executed}} in test3() 44 halt() // expected-warning {{will never be executed}} in test3() 49 (halt()); // expected-warning {{will never be executed}} in test3() 58 halt(), foor()// expected-warning {{will never be executed}} in test4() 70 .mem; // expected-warning {{will never be executed}} in test5() 81 (halt()); // expected-warning {{will never be executed}} in test6() 111 dead(); // expected-warning {{will never be executed}} in funcToSpecialize() 133 return PR19040_TEST_FAILURE; // expected-warning {{will never be executed}} in PR19040_fn1() 149 return ""; // expected-warning {{'return' will never be executed}} in testStr() [all …]
|
| H A D | unreachable-code.cpp | 8 ++i) { // expected-warning {{loop will run at most once (loop increment never executed)}} in test1() 14 return 1; // expected-warning {{will never be executed}} in test1() 20 ++i) { // expected-warning {{loop will run at most once (loop increment never executed)}} in test1_B() 26 return bar(); // expected-warning {{will never be executed}} in test1_B() 33 bar(); // expected-warning {{will never be executed}} in test2() 39 bar(); // expected-warning {{will never be executed}} in test2() 42 bar(); // expected-warning {{will never be executed}} in test2() 47 bar(); // expected-warning {{will never be executed}} in test3() 51 bar(); // expected-warning {{will never be executed}} in test3() 93 return; // expected-warning {{will never be executed}} in f() [all …]
|
| /llvm-project/llvm/test/Transforms/IndVarSimplify/ |
| H A D | pr45835.ll | 3 ; RUN: opt < %s -passes=indvars -replexitval=never -S | FileCheck %s --check-prefix=NEVER 35 ; NEVER-LABEL: @d( 36 ; NEVER-NEXT: entry: 37 ; NEVER-NEXT: [[CMP:%.*]] = icmp ule ptr [[C:%.*]], @a 38 ; NEVER-NEXT: [[ADD_PTR:%.*]] = getelementptr inbounds i8, ptr [[C]], i64 -65535 39 ; NEVER-NEXT: br label [[WHILE_COND:%.*]] 40 ; NEVER: while.cond: 41 ; NEVER-NEXT: br i1 false, label [[CONT:%.*]], label [[WHILE_END_LOOPEXIT:%.*]] 42 ; NEVER: cont: 43 ; NEVER-NEXT: [[A_MUX:%.*]] = select i1 [[CMP]], ptr @a, ptr [[C]] [all …]
|
| /llvm-project/llvm/test/Transforms/LoopSimplifyCFG/ |
| H A D | handle_dead_exits.ll | 13 br i1 0, label %never, label %next 24 never: 25 invoke void @foo() to label %next unwind label %never-unwind 27 never-unwind: 28 ; CHECK: never-unwind: 40 br i1 0, label %never, label %next 51 never: 52 invoke void @foo() to label %next unwind label %never-unwind 54 never-unwind: 55 ; CHECK: never-unwind: [all …]
|
| /llvm-project/clang/test/CodeGen/ |
| H A D | swift-async-extended-fp.c | 3 …fswift-async-fp=never -mframe-pointer=all -triple x86_64-apple-darwin10 -target-cpu core2 -S -o - … 4 …fswift-async-fp=never -mframe-pointer=all -triple x86_64-apple-darwin12 -target-cpu core2 -S -o - … 14 … -fswift-async-fp=never -mframe-pointer=all -triple arm64-apple-ios9 -target-cpu cyclone -S -o - %… 15 …-fswift-async-fp=never -mframe-pointer=all -triple arm64-apple-ios15 -target-cpu cyclone -S -o - %… 32 // NEVER-X86: _async_context_1: 33 // NEVER-X86-NOT: _swift_async_extendedFramePointerFlags 34 // NEVER-X86-NOT: btsq $60 42 // NEVER-ARM64: _async_context_1: 43 // NEVER-ARM64-NOT: _swift_async_extendedFramePointerFlags 44 // NEVER-ARM64-NOT: orr x29, x29, #0x1000000000000000
|
| H A D | xray-never-instrument.cpp | 1 // RUN: echo "fun:*foo*" > %t.never-instrument 2 // RUN: echo "src:*xray-never-instrument.cpp" >> %t.never-instrument 3 // RUN: echo "[never]" > %t.xray-attrlist 5 // RUN: echo "src:*xray-never-instrument.cpp" >> %t.xray-attrlist 7 // RUN: -fxray-never-instrument=%t.never-instrument -emit-llvm -o - %s \ 22 // CHECK: attributes #[[NEVERATTR]] = {{.*}} "function-instrument"="xray-never" {{.*}}
|
| /llvm-project/clang/test/SemaObjCXX/Inputs/ |
| H A D | nullability-consistency-arrays.h | 7 // expected-note@-4 {{insert '_Nonnull' if the array parameter should never be null}} 14 // expected-note@-4 {{insert '_Nonnull' if the pointer should never be null}} 24 // expected-note@-4 {{insert '_Nonnull' if the array parameter should never be null}} 28 // expected-note@-2 {{insert '_Nonnull' if the pointer should never be null}} 32 // expected-note@-6 {{insert '_Nonnull' if the array parameter should never be null}} 36 // expected-note@-2 2 {{insert '_Nonnull' if the pointer should never be null}} 40 // expected-note@-6 {{insert '_Nonnull' if the array parameter should never be null}} 47 // expected-note@-2 {{insert '_Nonnull' if the pointer should never be null}} 50 // expected-note@-2 2 {{insert '_Nonnull' if the pointer should never be null}} 80 // expected-note@-4 {{insert '_Nonnull' if the array parameter should never be null}} [all …]
|
| H A D | nullability-pragmas-1.h | 13 // expected-note@-2{{insert '_Nonnull' if the pointer should never be null}} 45 // expected-note@-2 2 {{insert '_Nonnull' if the pointer should never be null}} 48 // expected-note@-2{{insert '_Nonnull' if the pointer should never be null}} 53 // expected-note@-2{{insert '_Nonnull' if the block pointer should never be null}} 56 // expected-note@-5{{insert '_Nonnull' if the pointer should never be null}} 59 // expected-note@-2{{insert '_Nonnull' if the block pointer should never be null}} 62 // expected-note@-5{{insert '_Nonnull' if the pointer should never be null}} 66 // expected-note@-2 2 {{insert '_Nonnull' if the pointer should never be null}} 77 // expected-note@-3{{insert '_Nonnull' if the pointer should never be null}} 82 // expected-note@-2 2 {{insert '_Nonnull' if the pointer should never be null}} [all …]
|
| /llvm-project/clang/test/Driver/ |
| H A D | arm-target-as-mimplicit-it.s | 4 // RUN: %clang -target arm-linux-gnueabi -### -Wa,-mimplicit-it=never %s 2>&1 | FileCheck %s --check-prefix=NEVER 9 // RUN: %clang -target arm-linux-gnueabi -### -Xassembler -mimplicit-it=never %s 2>&1 | FileCheck %s --check-prefix=NEVER 14 // RUN: %clang -target arm-linux-gnueabi -### -Wa,-mimplicit-it=never -Wa,-mimplicit-it=always %s 2>&1 | FileCheck %s --check-prefix=ALWAYS 15 // RUN: %clang -target arm-linux-gnueabi -### -Wa,-mimplicit-it=always -Wa,-mimplicit-it=never %s 2>&1 | FileCheck %s --check-prefix=NEVER 20 // RUN: %clang -target arm-linux-gnueabi -### -Wa,-mimplicit-it=never,-mimplicit-it=always %s 2>&1 | FileCheck %s --check-prefix=ALWAYS 21 // RUN: %clang -target arm-linux-gnueabi -### -Wa,-mimplicit-it=always,-mimplicit-it=never %s 2>&1 | FileCheck %s --check-prefix=NEVER [all...] |
| /llvm-project/llvm/test/CodeGen/AArch64/ |
| H A D | swift-async-pei.ll | 2 …64-apple-ios -filetype asm -o - %s -swift-async-fp never | FileCheck %s -check-prefix CHECK-IOS-NE… 5 …le-watchos -filetype asm -o - %s -swift-async-fp never | FileCheck %s -check-prefix CHECK-WATCHOS-… 17 ; CHECK-IOS-NEVER: sub sp, sp, #32 18 ; CHECK-IOS-NEVER: stp x29, x30, [sp, #16] 20 ; CHECK-IOS-NEVER: ldp x29, x30, [sp, #16] 21 ; CHECK-IOS-NEVER: add sp, sp, #32 41 ; CHECK-WATCHOS-NEVER: sub sp, sp, #32 42 ; CHECK-WATCHOS-NEVER: stp x29, x30, [sp, #16] 44 ; CHECK-WATCHOS-NEVER: ldp x29, x30, [sp, #16] 45 ; CHECK-WATCHOS-NEVER: add sp, sp, #32
|
| H A D | stack-tagging-unchecked-ld-st.ll | 2 …ple=aarch64 -mattr=+mte -stack-tagging-unchecked-ld-st=never | FileCheck %s --check-prefixes=NEVER… 26 ; NEVER: ldr x0, [x{{.*}}] 44 ; NEVER: ldr w0, [x{{.*}}] 62 ; NEVER: ldrh w0, [x{{.*}}] 80 ; NEVER: ldrb w0, [x{{.*}}] 99 ; NEVER: str x{{.*}}, [x{{.*}}] 119 ; NEVER: str w{{.*}}, [x{{.*}}] 140 ; NEVER: strh w{{.*}}, [x{{.*}}] 160 ; NEVER: strb w{{.*}}, [x{{.*}}] 182 ; NEVER: stp {{.*}}, [x{{.*}}] [all …]
|
| /llvm-project/polly/lib/External/isl/ |
| H A D | isl_multi_no_explicit_domain.c | 27 * "multi" cannot have an explicit domain, so this function is never called. 36 * "src" cannot have an explicit domain, so this function is never called. 46 * so this function is never called. 66 * so this function is never called. 77 * "multi" cannot have an explicit domain, so this function is never called. 88 * "multi" cannot have an explicit domain, so this function is never called. 100 * "multi" cannot have an explicit domain, so this function is never called. 111 * "multi" cannot have an explicit domain, so this function is never called. 122 * "multi" cannot have an explicit domain, so this function is never called. 133 * "multi" cannot have an explicit domain, so this function is never called. [all …]
|
| /llvm-project/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
| H A D | p5.cpp | 33 constexpr int f() { return throw 0, 0; } // expected-error {{constexpr function never produces a co… in f() 43 …constexpr D() : B(global) { } // expected-error {{constexpr constructor never produces a constant … in D() 50 constexpr int Comma(int n) { return // expected-error {{constexpr function never produces a constan… in Comma() 57 constexpr int BinaryOp1(int n) { return n + ng; } // expected-error {{never produces}} expected-not… in BinaryOp1() 58 constexpr int BinaryOp2(int n) { return ng + n; } // expected-error {{never produces}} expected-not… in BinaryOp2() 61 constexpr double BinaryOp1(double d) { return d + dg; } // expected-error {{never produces}} expect… in BinaryOp1() 62 constexpr double BinaryOp2(double d) { return dg + d; } // expected-error {{never produces}} expect… in BinaryOp2() 65 constexpr int FunctionArgs(int a) { return Add(a, ng, a); } // expected-error {{never produces}} ex… in FunctionArgs() 68 constexpr S InitList(int a) { return { a, ng }; }; // expected-error {{never produces}} expected-no… in InitList() 69 constexpr S InitList1a(int a) { return S{ a, ng }; }; // expected-error {{never produces}} expected… in InitList1a() [all …]
|
| /llvm-project/clang/test/Analysis/ |
| H A D | unreachable-code-path.c | 9 a += 5; // expected-warning{{never executed}} in test() 24 foo(a); // expected-warning{{never executed}} in test2() 30 if (a > 5) { // expected-warning{{never executed}} in test3() 44 a = a + 56; // expected-warning{{never executed}} in test4() 56 bar(1); // expected-warning{{never executed}} in test5() 95 if (a) // expected-warning{{never executed}} in test9() 111 goto e; // expected-warning {{never executed}} in test10() 115 goto b; // expected-warning {{never executed}} in test10() 116 goto a; // expected-warning {{never executed}} in test10() 140 error(); // expected-warning {{never executed}} in test11() [all …]
|
| H A D | stream-notes-missing-close.cpp | 31 } // expected-warning{{Opened stream never closed. Potential resource leak [unix.Stream]}} in f() 32 // expected-note@-1{{Opened stream never closed. Potential resource leak}} 55 return; // expected-warning{{Opened stream never closed. Potential resource leak [unix.Stream]}} in f() 56 // expected-note@-1{{Opened stream never closed. Potential resource leak}} in f() 79 } // expected-warning{{Opened stream never closed. Potential resource leak [unix.Stream]}} in foo() 80 // expected-note@-1{{Opened stream never closed. Potential resource leak}} 103 …expectedClose(p); // expected-warning{{Opened stream never closed. Potential resource leak [unix.S… in f() 104 // expected-note@-1{{Opened stream never closed. Potential resource leak}} in f() 123 } // expected-warning{{Opened stream never closed. Potential resource leak [unix.Stream]}} in f() 124 // expected-note@-1{{Opened stream never closed. Potential resource leak}} [all …]
|
| H A D | dead-stores.c | 21 long idx = abc + 3 * 5; // non-nested-warning {{never read}} in f1() 29 char *d = b + 1; // non-nested-warning {{never read}} in f2() 50 k = 2; // non-nested-warning {{never read}} in f4() 55 int *p = &x; // non-nested-warning {{never read}} in f5() 101 x = x + 10; // non-nested-warning {{never read}} in f9() 107 x = 10 + x; // non-nested-warning {{never read}} in f10() 113 return x++; // non-nested-warning {{never read}} in f11() 184 x = 10; // non-nested-warning {{Value stored to 'x' is never read}} in f18() 186 x = 10; // non-nested-warning {{Value stored to 'x' is never read}} in f18() 202 x = 10; // non-nested-warning {{Value stored to 'x' is never read}} in f18_b() [all …]
|
| H A D | simple-stream-checks.c | 23 if (Data) // expected-warning {{Opened file is never closed; potential resource leak}} in checkLeak() 48 } // expected-warning {{Opened file is never closed; potential resource leak}} in leakOnEnfOfPath1() 52 return; // expected-warning {{Opened file is never closed; potential resource leak}} in leakOnEnfOfPath2() 77 return; // expected-warning {{Opened file is never closed; potential resource leak}} in SymbolDoesNotEscapeThoughStringAPIs() 84 return; // expected-warning {{Opened file is never closed; potential resource leak}} in testPassConstPointer() 96 } // expected-warning {{Opened file is never closed; potential resource leak}} in testOverwrite()
|
| /llvm-project/llvm/test/Instrumentation/AddressSanitizer/ |
| H A D | fake-stack.ll | 2 ; RUN: opt < %s -passes=asan -asan-use-after-return=never -S | FileCheck %s --check-prefixes=CHECK,NEVER 20 ; NEVER-LABEL: @Simple( 21 ; NEVER-NEXT: entry: 22 ; NEVER-NEXT: [[MYALLOCA:%.*]] = alloca i8, i64 64, align 32 23 ; NEVER-NEXT: [[TMP0:%.*]] = ptrtoint ptr [[MYALLOCA]] to i64 24 ; NEVER-NEXT: [[TMP1:%.*]] = add i64 [[TMP0]], 32 25 ; NEVER-NEXT: [[TMP2:%.*]] = inttoptr i64 [[TMP1]] to ptr 26 ; NEVER-NEXT: [[TMP3:%.*]] = inttoptr i64 [[TMP0]] to ptr 27 ; NEVER [all...] |
| /llvm-project/clang/test/SemaObjC/ |
| H A D | warn-called-once.m | 134 // expected-warning@-1{{'callback' parameter marked 'called_once' is never called}} 138 // expected-warning@-1{{'callback' parameter marked 'called_once' is never called}} 175 …// expected-warning@-1{{'callback' parameter marked 'called_once' is never used when taking false … 266 …// expected-warning@-1{{'callback' parameter marked 'called_once' is never used when taking false … 274 // expected-warning@-1{{'inner' parameter marked 'called_once' is never called}} 289 …if (cond) // expected-warning{{'callback' parameter marked 'called_once' is never called when taki… 314 …if (!cond) // expected-warning{{'callback' parameter marked 'called_once' is never called when tak… 321 …if (cond) { // expected-warning{{'callback' parameter marked 'called_once' is never called when ta… 328 …if (cond) { // expected-warning{{'callback' parameter marked 'called_once' is never called when ta… 338 …if (cond) { // expected-warning{{'callback' parameter marked 'called_once' is never called when ta… [all …]
|
| H A D | warn-unreachable.m | 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}} 56 …if (NO) calledFun(); // expected-warning {{will never be executed}} expected-note {{silence by add… 62 calledFun(); // expected-warning {{will never be executed}} 70 calledFun(); // expected-warning {{code will never be executed}}
|
| /llvm-project/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/ |
| H A D | rvalue-reference-param-not-moved.cpp | 43 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: rvalue reference parameter 'o' is never moved from in… in never_moves_param() 50 …// CHECK-MESSAGES: :[[@LINE-1]]:26: warning: rvalue reference parameter 'o' is never moved from in… in copies_object() 56 …// CHECK-MESSAGES: :[[@LINE-1]]:39: warning: rvalue reference parameter 'o' is never moved from in… in never_moves_param_template() 61 …// CHECK-MESSAGES: :[[@LINE-1]]:31: warning: rvalue reference parameter 'o1' is never moved from i… in never_moves_params() 62 …// CHECK-MESSAGES: :[[@LINE-2]]:41: warning: rvalue reference parameter 'o2' is never moved from i… in never_moves_params() 66 …// CHECK-MESSAGES: :[[@LINE-1]]:36: warning: rvalue reference parameter 'o1' is never moved from i… in never_moves_some_params() 72 // CHECK-MESSAGES-UNNAMED: :[[@LINE-1]]:31: warning: rvalue reference parameter '' is never moved f… 75 …// CHECK-MESSAGES: :[[@LINE-1]]:38: warning: rvalue reference parameter 'o2' is never moved from i… in never_moves_mixed() 82 …// CHECK-MESSAGES: :[[@LINE-4]]:47: warning: rvalue reference parameter 'o' is never moved from in… in lambda_captures_parameter_as_value() 86 …// CHECK-MESSAGES: :[[@LINE-1]]:54: warning: rvalue reference parameter 'o' is never moved from in… in lambda_captures_parameter_as_value_nested() [all …]
|
| H A D | missing-std-forward.cpp | 34 // CHECK-MESSAGES: :[[@LINE-1]]:27: warning: forwarding reference parameter 't' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward] in does_not_forward() 40 // CHECK-MESSAGES: :[[@LINE-1]]:35: warning: forwarding reference parameter 't' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward] in does_not_forward_invoked() 46 // CHECK-MESSAGES: :[[@LINE-1]]:28: warning: forwarding reference parameter 't' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward] in forwards_pairwise() 53 // CHECK-MESSAGES: :[[@LINE-1]]:36: warning: forwarding reference parameter 'ts' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward] in does_not_forward_pack() 62 // CHECK-MESSAGES: :[[@LINE-1]]:14: warning: forwarding reference parameter 'u' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward] 66 // CHECK-MESSAGES: :[[@LINE-1]]:25: warning: forwarding reference parameter 'u' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward] 70 // CHECK-MESSAGES: :[[@LINE-1]]:32: warning: forwarding reference parameter 'u' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward] in mixed_params() 80 // CHECK-MESSAGES: :[[@LINE-1]]:45: warning: forwarding reference parameter 't' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward] in does_not_forward_in_evaluated_code() 88 // CHECK-MESSAGES: :[[@LINE-1]]:31: warning: forwarding reference parameter 't' is never forwarded inside the function body [cppcoreguidelines-missing-std-forward] in lambda_value_capture() 94 // CHECK-MESSAGES: :[[@LINE-1]]:36: warning: forwarding reference parameter 't' is never forwarde in lambda_value_capture_copy() [all...] |
| /llvm-project/lld/test/ELF/ |
| H A D | aarch64-feature-gcs.s | 19 # RUN: ld.lld func2-gcs.o func3.o --shared -o force-gcs2.so -z gcs=never -z gcs=always 30 ## GCS should be disabled with gcs=never, even if GCS is present in all inputs. 32 # RUN: ld.lld func1-gcs.o func2-gcs.o func3-gcs.o -z gcs=never -o never-gcs 33 # RUN: llvm-readelf -n never-gcs | count 0 34 # RUN: ld.lld func1-gcs.o func2-gcs.o func3-gcs.o -z gcs=always -z gcs=never -o never-gcs2 35 # RUN: llvm-readelf -n never-gcs2 | count 0 41 # RUN: ld.lld func1-gcs.o func2.o func3-gcs.o -o /dev/null -z gcs-report=warning -z gcs=never 2>&1 … 44 # RUN: not ld.lld func2-gcs.o func3.o --shared -o /dev/null -z gcs-report=error -z gcs=never 2>&1 |… 47 # RUN: ld.lld func1-gcs.o func2-gcs.o func3-gcs.o -o /dev/null -z gcs-report=warning -z gcs=never 2…
|
| /llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ObjCMissingSuperCallChecker.cpp | 239 - loadView (should *never* call super) 251 - arrowDirection (should *never* call super) 252 - arrowOffset (should *never* call super) 253 - arrowBase (should *never* call super) 254 - arrowHeight (should *never* call super) 255 - contentViewInsets (should *never* call super) 258 - rect (should *never* call super) 259 - range (should *never* call super) 260 - writingDirection (should *never* call super) 261 - isVertical (should *never* cal [all...] |