/llvm-project/clang/utils/ClangVisualizers/ |
H A D | clang.natvis | 23 …<DisplayString IncludeView="cmn" Condition="TypeBits.TC==clang::LocInfoType::LocInfo">LocInfoType<… 26 …<DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Builtin" IncludeView="poly">{*(clan… 27 …<DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Pointer" IncludeView="poly">{*(clan… 28 …<DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::Paren" IncludeView="poly">{*(clang:… 29 …<DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::BitInt" IncludeView="poly">{(clang:… 30 …<DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::LValueReference" IncludeView="poly"… 31 …<DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::RValueReference" IncludeView="poly"… 32 …<DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::ConstantArray" IncludeView="poly">{… 33 …<DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::ConstantArray" IncludeView="left">{… 34 …<DisplayString Condition="TypeBits.TC==clang::Type::TypeClass::ConstantArray" IncludeView="right">… [all …]
|
/llvm-project/lldb/test/API/functionalities/breakpoint/thread_plan_user_breakpoint/ |
H A D | TestThreadPlanUserBreakpoint.py | 7 and eStopReasonPlanComplete when breakpoint's condition fails or it is disabled. 39 def check_correct_stop_reason(self, breakpoint_idx, condition): argument 41 if condition: 62 def check_thread_plan_user_breakpoint(self, condition, set_up_breakpoint_func): argument 64 self.change_breakpoints(lambda bp: set_up_breakpoint_func(condition, bp)) 68 self.check_correct_stop_reason(0, condition) 73 self.check_correct_stop_reason(1, condition) 82 set_up_breakpoint_func(condition, step_out_breakpoint) 86 self.check_correct_stop_reason(2, condition) 92 def set_up_breakpoints_condition(self, condition, bp): argument [all …]
|
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/ |
H A D | avoid-unconditional-preprocessor-if.cpp | 3 …AGES: :[[@LINE+1]]:2: warning: preprocessor condition is always 'false', consider removing both th… 8 …-MESSAGES: :[[@LINE+1]]:2: warning: preprocessor condition is always 'true', consider removing con… 17 …-MESSAGES: :[[@LINE+1]]:2: warning: preprocessor condition is always 'true', consider removing con… 22 …AGES: :[[@LINE+1]]:2: warning: preprocessor condition is always 'false', consider removing both th… 27 …-MESSAGES: :[[@LINE+1]]:2: warning: preprocessor condition is always 'true', consider removing con… 32 …AGES: :[[@LINE+1]]:2: warning: preprocessor condition is always 'false', consider removing both th… 37 …AGES: :[[@LINE+1]]:2: warning: preprocessor condition is always 'false', consider removing both th… 43 …-MESSAGES: :[[@LINE+1]]:2: warning: preprocessor condition is always 'true', consider removing con… 49 …-MESSAGES: :[[@LINE+1]]:2: warning: preprocessor condition is always 'true', consider removing con… 54 …AGES: :[[@LINE+1]]:2: warning: preprocessor condition is always 'false', consider removing both th…
|
/llvm-project/llvm/utils/LLVMVisualizers/ |
H A D | llvm.natvis | 12 <DisplayString Condition="Size == 0">empty</DisplayString> 13 …<DisplayString Condition="Size && Size < 4">{(value_type*)BeginX,[Size]}</DisplayString> 14 <DisplayString Condition="Size > 3">{Size} elements</DisplayString> 27 <DisplayString Condition="BitWidth <= 64">{U.VAL}</DisplayString> 31 <DisplayString Condition="Length < 4">{Data,[Length]}</DisplayString> 32 <DisplayString Condition="Length > 3">{Length} elements</DisplayString> 104 …<DisplayString Optional="true" Condition="((*(intptr_t *)Val.Value.Data>>$T2::InfoTy::IntShi… 107 …<DisplayString Optional="true" Condition="((*(intptr_t *)Val.Value.Data>>$T2::InfoTy::IntShi… 112 …<Item Name="[Holds]" Condition="((*(intptr_t *)Val.Value.Data>>$T2::InfoTy::IntShift) & … 113 …<Item Name="[Ptr]" Optional="true" Condition="((*(intptr_t *)Val.Value.Data>>$T2::InfoTy::I… [all …]
|
/llvm-project/llvm/test/MC/ARM/ |
H A D | thumb-invalid-crypto.txt | 5 @ CHECK: error: instruction 'aesd' is not predicable, but condition code specified 7 @ CHECK: error: instruction 'aesimc' is not predicable, but condition code specified 9 @ CHECK: error: instruction 'aesmc' is not predicable, but condition code specified 11 @ CHECK: error: instruction 'aese' is not predicable, but condition code specified 15 @ CHECK: error: instruction 'sha1h' is not predicable, but condition code specified 17 @ CHECK: error: instruction 'sha1su1' is not predicable, but condition code specified 19 @ CHECK: error: instruction 'sha256su0' is not predicable, but condition code specified 23 @ CHECK: error: instruction 'sha1c' is not predicable, but condition code specified 25 @ CHECK: error: instruction 'sha1m' is not predicable, but condition code specified 27 @ CHECK: error: instruction 'sha1p' is not predicable, but condition code specified [all …]
|
H A D | speculation-barriers-errors.s | 22 // CHECK: error: instruction 'csdb' is not predicable, but condition code specified 23 // CHECK: error: instruction 'ssbb' is not predicable, but condition code specified 24 // CHECK: error: instruction 'pssbb' is not predicable, but condition code specified 25 // CHECK: error: instruction 'csdb' is not predicable, but condition code specified 26 // CHECK: error: instruction 'dsb' is not predicable, but condition code specified 27 // CHECK: error: instruction 'dsb' is not predicable, but condition code specified 29 // THUMB: error: instruction 'csdb' is not predicable, but condition code specified 30 // THUMB: error: instruction 'ssbb' is not predicable, but condition code specified 31 // THUMB: error: instruction 'pssbb' is not predicable, but condition code specified 32 // THUMB: error: instruction 'csdb' is not predicable, but condition code specified [all …]
|
/llvm-project/llvm/test/Transforms/InstCombine/ |
H A D | widenable-conditions.ll | 9 ; CHECK-NEXT: [[WC:%.*]] = call i1 @llvm.experimental.widenable.condition() 14 %wc = call i1 @llvm.experimental.widenable.condition() 22 ; CHECK-NEXT: [[WC:%.*]] = call i1 @llvm.experimental.widenable.condition() 27 %wc = call i1 @llvm.experimental.widenable.condition() 36 ; CHECK-NEXT: [[WC:%.*]] = call i1 @llvm.experimental.widenable.condition() 42 %wc = call i1 @llvm.experimental.widenable.condition() 51 ; CHECK-NEXT: [[WC:%.*]] = call i1 @llvm.experimental.widenable.condition() 57 %wc = call i1 @llvm.experimental.widenable.condition() 69 ; CHECK-NEXT: [[WC:%.*]] = call i1 @llvm.experimental.widenable.condition() 77 %wc = call i1 @llvm.experimental.widenable.condition() [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
H A D | redundant-branch-condition.cpp | 1 // RUN: %check_clang_tidy %s bugprone-redundant-branch-condition %t \ 24 …ECK-MESSAGES: :[[@LINE-1]]:5: warning: redundant condition 'onFire' [bugprone-redundant-branch-con… in positive_direct() 37 …ECK-MESSAGES: :[[@LINE-1]]:7: warning: redundant condition 'onFire' [bugprone-redundant-branch-con… in positive_indirect() 48 …ECK-MESSAGES: :[[@LINE-1]]:5: warning: redundant condition 'onFire' [bugprone-redundant-branch-con… in positive_direct_inner_and_lhs() 60 …ECK-MESSAGES: :[[@LINE-1]]:7: warning: redundant condition 'onFire' [bugprone-redundant-branch-con… in positive_indirect_inner_and_lhs() 72 …ECK-MESSAGES: :[[@LINE-1]]:5: warning: redundant condition 'onFire' [bugprone-redundant-branch-con… in positive_direct_inner_and_rhs() 84 …ECK-MESSAGES: :[[@LINE-1]]:7: warning: redundant condition 'onFire' [bugprone-redundant-branch-con… in positive_indirect_inner_and_rhs() 96 …ECK-MESSAGES: :[[@LINE-1]]:5: warning: redundant condition 'onFire' [bugprone-redundant-branch-con… in positive_direct_inner_or_lhs() 109 …ECK-MESSAGES: :[[@LINE-1]]:7: warning: redundant condition 'onFire' [bugprone-redundant-branch-con… in positive_indirect_inner_or_lhs() 122 …ECK-MESSAGES: :[[@LINE-1]]:5: warning: redundant condition 'onFire' [bugprone-redundant-branch-con… in positive_direct_inner_or_rhs() [all …]
|
H A D | inc-dec-in-conditions.cpp | 22 … complex condition can cause unintended side-effects due to C++'s order of evaluation, consider mo… in f() 27 … complex condition can cause unintended side-effects due to C++'s order of evaluation, consider mo… in f2() 33 … complex condition can cause unintended side-effects due to C++'s order of evaluation, consider mo… in c() 39 … complex condition can cause unintended side-effects due to C++'s order of evaluation, consider mo… in c2() 44 … complex condition can cause unintended side-effects due to C++'s order of evaluation, consider mo… in d() 49 … complex condition can cause unintended side-effects due to C++'s order of evaluation, consider mo… in d2() 55 … complex condition can cause unintended side-effects due to C++'s order of evaluation, consider mo… in g() 61 … complex condition can cause unintended side-effects due to C++'s order of evaluation, consider mo… in g2() 68 … complex condition can cause unintended side-effects due to C++'s order of evaluation, consider mo… in doubleCheck() 69 … complex condition can cause unintended side-effects due to C++'s order of evaluation, consider mo… in doubleCheck()
|
H A D | assignment-in-if-condition.cpp | 1 // RUN: %check_clang_tidy %s bugprone-assignment-in-if-condition %t 6 …-1]]:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-c… in f() 15 …-1]]:24: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-c… in f1() 24 …E-1]]:9: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-c… in f2() 35 …-1]]:42: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-c… in f3() 44 …-1]]:43: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-c… in f4() 48 …-1]]:35: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-c… in f4() 71 …-1]]:10: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-c… in f5() 76 …-1]]:25: warning: an assignment within an 'if' condition is bug-prone [bugprone-assignment-in-if-c… in f5()
|
H A D | spuriously-wake-up-functions.cpp | 116 static std::condition_variable condition; variable 118 void consume_list_element(std::condition_variable &condition) { in consume_list_element() argument 122 condition.wait(lk); in consume_list_element() 127 condition.wait(lk); in consume_list_element() 131 condition.wait(lk); in consume_list_element() 135 condition.wait(lk); in consume_list_element() 140 condition.wait(lk); in consume_list_element() 146 condition.wait(lk); in consume_list_element() 152 condition.wait(lk); in consume_list_element() 158 condition.wait_for(lk, dur); in consume_list_element() [all …]
|
H A D | assert-side-effect.cpp | 37 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in assert() condition discarded in release… in main() 39 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in my_assert() condition discarded in rele… in main() 41 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in convoluted_assert() condition discarded… in main() 45 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in assert() condition discarded in release… in main() 51 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in assert() condition discarded in release… in main() 56 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in assert() condition discarded in release… in main() 60 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in assert() condition discarded in release… in main() 63 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in assert() condition discarded in release… in main() 68 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in assert() condition discarded in release… in main() 74 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: side effect in assert() condition discarded in release… in main() [all …]
|
/llvm-project/clang/test/Analysis/ |
H A D | cfref_rdar6080742.c | 33 void DebugTraceIf(unsigned int condition, const char *format,...); 36 #define Assert(condition)if (!(condition)) { DebugStop("Assertion failure: %s [File: %s, Line: %lu]… argument 37 #define AssertMsg(condition, message)if (!(condition)) { DebugStop("Assertion failure: %s (%s) [Fil… argument 38 #define Require(condition)if (!(condition)) { DebugStop("Assertion failure: %s [File: %s, Line: %lu… argument 39 #define RequireAction(condition, action)if (!(condition)) { DebugStop("Assertion failure: %s [File:… argument 40 #define RequireActionSilent(condition, action)if (!(condition)) { action } argument
|
H A D | uninit-sometimes.cpp | 8 if (b) // expected-warning {{whenever 'if' condition is false}} \ in test_if_false() 9 // expected-note {{remove the 'if' if its condition is always true}} in test_if_false() 20 if (b) {} // expected-warning {{whenever 'if' condition is true}} \ in test_if_true() 21 // expected-note {{remove the 'if' if its condition is always false}} in test_if_true() 32 while (b) { // expected-warning {{whenever 'while' loop exits because its condition is false}} \ in test_while_false() 33 // expected-note {{remove the condition if it is always true}} in test_while_false() 49 // expected-note {{remove the condition if it is always false}} in test_while_true() 68 } while (b); // expected-warning {{whenever 'do' loop exits because its condition is false}} \ in test_do_while_false() 69 // expected-note {{remove the condition if it is always true}} in test_do_while_false() 84 } while (b); // expected-warning {{whenever 'do' loop condition is true}} \ in test_do_while_true() [all …]
|
/llvm-project/libunwind/cmake/Modules/ |
H A D | HandleLibunwindFlags.cmake | 20 # If 'condition' is true then add the specified list of flags to 22 macro(add_compile_flags_if condition) 23 if (${condition}) 45 # If 'condition' is true then add the specified list of flags to 47 macro(add_c_flags_if condition) 48 if (${condition}) 60 # If 'condition' is true then add the specified list of flags to 62 macro(add_cxx_flags_if condition) 63 if (${condition}) 85 # If 'condition' is true then add the specified list of flags to [all …]
|
/llvm-project/clang/test/SemaCXX/ |
H A D | warn-loop-analysis.cpp | 17 …for (int i; i < 1; ) {} // expected-warning {{variable 'i' used in loop condition not modified in… in test1() 24 …for (int i; i < 1; ) { by_value(i); } // expected-warning {{variable 'i' used in loop condition n… in test1() 31 …for (int j; j < 1; ++i) // expected-warning {{variable 'j' used in loop condition not modified in… in test1() 34 …for (int j; i < 1; ++j) // expected-warning {{variable 'i' used in loop condition not modified in… in test1() 38 …for (int *i, *j; i < j;) {} // expected-warning {{variables 'i' and 'j' used in loop condition no… in test1() 49 …for (; i; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop body… in test2() 53 …for (; i < j; ) {} // expected-warning {{variables 'i' and 'j' used in loop condition not modified… in test2() 58 …for (; i < 5; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loop … in test2() 62 …for (; i < 5.0; ) {} // expected-warning {{variable 'i' used in loop condition not modified in loo… in test2() 66 …for (; i == 'a'; ) {} // expected-warning {{variable 'i' used in loop condition not modified in lo… in test2() [all …]
|
H A D | warn-assignment-condition.cpp | 15 if (x = 7) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \ in test() 20 } while (x = 7); // expected-warning {{using the result of an assignment as a condition without parentheses}} \ in test() 25 while (x = 7) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \ in test() 30 for (; x = 7; ) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \ in test() 35 if (p = p) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \ in test() 40 } while (p = p); // expected-warning {{using the result of an assignment as a condition without parentheses}} \ in test() 45 while (p = p) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \ in test() 49 for (; p = p; ) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \ in test() 61 if (x = (b+b).foo()) {} // expected-warning {{using the result of an assignment as a condition without parentheses}} \ in test() 66 } while (x = (b+b).foo()); // expected-warning {{using the result of an assignment as a condition withou in test() [all...] |
/llvm-project/runtimes/cmake/Modules/ |
H A D | HandleFlags.cmake | 49 # If the specified 'condition' is true then append the specified list of flags to DEST 50 macro(append_flags_if condition DEST) 51 if (${condition}) 65 # Add a macro definition if condition is true. 66 macro(define_if condition def) 67 if (${condition}) 72 # Add a macro definition if condition is not true. 73 macro(define_if_not condition def) 74 if (NOT ${condition}) 79 # Add a macro definition to the __config_site file if the specified condition [all...] |
/llvm-project/clang/unittests/Analysis/FlowSensitive/ |
H A D | ChromiumCheckModelTest.cpp | 46 static CheckError Check(const char* file, int line, const char* condition); 47 static CheckError DCheck(const char* file, int line, const char* condition); 48 static CheckError PCheck(const char* file, int line, const char* condition); 50 static CheckError DPCheck(const char* file, int line, const char* condition); 64 #define LAZY_CHECK_STREAM(stream, condition) \ 65 !(condition) ? (void)0 : ::logging::VoidifyStream() & (stream) 67 #define CHECK(condition) \ 69 ::logging::CheckError::Check(__FILE__, __LINE__, #condition).stream(), \ 70 !(condition)) 72 #define PCHECK(condition) \ [all …]
|
/llvm-project/clang/test/Parser/ |
H A D | decomposed-condition.cpp | 36 …()) // expected-warning {{ISO C++17 does not permit structured binding declaration in a condition}} in h() 38 …warning {{ISO C++17 does not permit structured binding declaration in a condition}} expected-error… in h() 40 …()) // expected-warning {{ISO C++17 does not permit structured binding declaration in a condition}} in h() 47 …()) // expected-warning {{ISO C++17 does not permit structured binding declaration in a condition}} in h() 49 …warning {{ISO C++17 does not permit structured binding declaration in a condition}} expected-error… in h() 51 …t()) // expected-warning{{ISO C++17 does not permit structured binding declaration in a condition}} in h() 58 …);) // expected-warning {{ISO C++17 does not permit structured binding declaration in a condition}} in h() 60 …warning {{ISO C++17 does not permit structured binding declaration in a condition}} expected-error… in h() 62 …);) // expected-warning {{ISO C++17 does not permit structured binding declaration in a condition}} in h() 77 … x) // expected-warning {{ISO C++17 does not permit structured binding declaration in a condition}} in h() [all …]
|
/llvm-project/libcxxabi/cmake/Modules/ |
H A D | HandleLibcxxabiFlags.cmake | 21 # If the specified 'condition' is true then add a list of flags to both 23 macro(add_flags_if condition) 24 if (${condition}) 46 # If 'condition' is true then add the specified list of flags to 48 macro(add_compile_flags_if condition) 49 if (${condition}) 81 # If 'condition' is true then add the specified list of flags to 83 macro(add_link_flags_if condition) 84 if (${condition}) 106 # if 'condition' is true then add the specified list of libraries and flags [all …]
|
/llvm-project/llvm/test/Analysis/ScalarEvolution/ |
H A D | infer-prestart-no-wrap.ll | 39 %condition = icmp eq i32 %counter, 1 41 br i1 %condition, label %exit, label %loop 82 %condition = icmp eq i32 %counter, 1 84 br i1 %condition, label %exit, label %loop 103 ; CHECK-NEXT: %condition = load i1, ptr %c, align 1 104 ; CHECK-NEXT: --> %condition U: full-set S: full-set Exits: <<Unknown>> LoopDispositions: { %loop: Variant } 119 %condition = load i1, ptr %c 120 br i1 %condition, label %exit, label %loop 137 ; CHECK-NEXT: %condition = load volatile i1, ptr %c, align 1 138 ; CHECK-NEXT: --> %condition [all...] |
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
H A D | redundant-branch-condition.rst | 1 .. title:: clang-tidy - bugprone-redundant-branch-condition 3 bugprone-redundant-branch-condition 6 Finds condition variables in nested ``if`` statements that were also checked in 23 The checker also detects redundant condition checks if the condition variable 43 condition variable and keep the other side of the ``&&``. In the second case 47 The condition of the outer ``if`` statement may also be a logical "and" (``&&``) 65 No error is detected if the condition variable may have been changed between the 77 Every possible change is considered, thus if the condition variable is not 84 The ``else`` branch is not checked currently for negated condition variable: 97 The checker currently only detects redundant checking of single condition
|
H A D | inc-dec-in-conditions.rst | 7 complex condition and suggests moving them outside to avoid ambiguity in the 10 When a variable is modified and also used in a complex condition, it can lead to 12 condition can make the code difficult to reason about. Additionally, the 15 problematic when the condition involves logical operators like ``&&`` and 30 after the entire condition is evaluated, but in reality, i will be incremented 33 operation from the condition and perform it separately. For example, they can 34 increment ``i`` in a separate statement before or after the condition is 48 on the same variable inside a complex condition. For example: 59 The ``||`` operator used in the condition statement guarantees that if the first 67 ``i`` should be moved outside the condition statement.
|
/llvm-project/lldb/test/API/functionalities/breakpoint/breakpoint_conditions/ |
H A D | TestBreakpointConditions.py | 13 """Exercise breakpoint condition with 'breakpoint modify -c <expr> id'.""" 18 """Exercise breakpoint condition inline with 'breakpoint set'.""" 46 """Exercise breakpoint condition with 'breakpoint modify -c <expr> id'.""" 51 # Create a breakpoint by function name 'c' and set the condition. 65 # And set a condition on the breakpoint to stop on when 'val == 3'. 74 # 'frame variable --show-types val' should return 3 due to breakpoint condition. 85 substrs=["resolved = 1", "Condition: val == 3", "hit count = 1"], 101 # Test that "breakpoint modify -c ''" clears the condition for the last 109 substrs=["Condition:"], 163 # Set the condition o [all...] |