/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/ |
H A D | implicit-bool-conversion.cpp | 23 bool boolean = true; in implicitConversionFromBoolSimpleCases() 25 functionTaking<bool>(boolean); in implicitConversionFromBoolSimpleCases() 27 functionTaking<int>(boolean); in implicitConversionFromBoolSimpleCases() 29 // CHECK-FIXES: functionTaking<int>(static_cast<int>(boolean)); in implicitConversionFromBoolSimpleCases() 31 functionTaking<unsigned long>(boolean); in implicitConversionFromBoolSimpleCases() 33 // CHECK-FIXES: functionTaking<unsigned long>(static_cast<unsigned long>(boolean)); in implicitConversionFromBoolSimpleCases() 35 functionTaking<char>(boolean); in implicitConversionFromBoolSimpleCases() 37 // CHECK-FIXES: functionTaking<char>(static_cast<char>(boolean)); in implicitConversionFromBoolSimpleCases() 39 functionTaking<float>(boolean); in implicitConversionFromBoolSimpleCases() 41 // CHECK-FIXES: functionTaking<float>(static_cast<float>(boolean)); in implicitConversionFromBoolSimpleCases() 19 bool boolean = true; implicitConversionFromBoolSimpleCases() local 45 bool boolean = false; implicitConversionFromBoolInReturnValue() local 52 bool boolean = true; implicitConversionFromBoolInSingleBoolExpressions() local 74 bool boolean = true; implicitConversionFromBoollInComplexBoolExpressions() local 117 bool boolean = true; implicitConversionFromBoolInComparisons() local 130 bool boolean = true; ignoreBoolComparisons() local 138 bool boolean = true; ignoreExplicitCastsFromBool() local 146 bool boolean = true; ignoreImplicitConversionFromBoolInMacroExpansions() local 159 bool boolean = true; templateFunction() local 231 bool boolean = true; implicitConversionToBoolInComplexExpressions() local 419 bool boolean = unknownType; templateFunction() local [all...] |
H A D | implicit-bool-conversion.c | 22 bool boolean = true; in implicitConversionFromBoolSimpleCases() 24 functionTakingBool(boolean); in implicitConversionFromBoolSimpleCases() 26 functionTakingInt(boolean); in implicitConversionFromBoolSimpleCases() 28 // CHECK-FIXES: functionTakingInt((int)boolean); in implicitConversionFromBoolSimpleCases() 30 functionTakingUnsignedLong(boolean); in implicitConversionFromBoolSimpleCases() 32 // CHECK-FIXES: functionTakingUnsignedLong((unsigned long)boolean); in implicitConversionFromBoolSimpleCases() 34 functionTakingChar(boolean); in implicitConversionFromBoolSimpleCases() 36 // CHECK-FIXES: functionTakingChar((char)boolean); in implicitConversionFromBoolSimpleCases() 38 functionTakingFloat(boolean); in implicitConversionFromBoolSimpleCases() 40 // CHECK-FIXES: functionTakingFloat((float)boolean); in implicitConversionFromBoolSimpleCases() 18 bool boolean = true; implicitConversionFromBoolSimpleCases() local 44 bool boolean = false; implicitConversionFromBoolInReturnValue() local 51 bool boolean = true; implicitConversionFromBoolInSingleBoolExpressions() local 70 bool boolean = true; implicitConversionFromBoolInComplexBoolExpressions() local 113 bool boolean = true; implicitConversionFromBoolInComparisons() local 126 bool boolean = true; ignoreBoolComparisons() local 134 bool boolean = true; ignoreExplicitCastsFromBool() local 142 bool boolean = true; ignoreImplicitConversionFromBoolInMacroExpansions() local 212 bool boolean = true; implicitConversionToBoolInComplexExpressions() local [all...] |
/llvm-project/clang/test/SemaObjCXX/ |
H A D | warn-objc-literal-conversion.mm | 24 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 29 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 31 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 33 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 35 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 40 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 42 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 44 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 46 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… 51 …// expected-warning@-1{{implicit boolean conversion of Objective-C object literal always evaluates… [all …]
|
/llvm-project/clang/test/Sema/ |
H A D | warn-bitwise-or-bool.c | 11 typedef bool boolean; typedef 13 typedef _Bool boolean; typedef 16 boolean foo(void); 17 boolean bar(void); 18 boolean baz(void) __attribute__((const)); 19 void sink(boolean); 25 void test(boolean a, boolean b, int *p, volatile int *q, int i) { in test()
|
H A D | warn-bitwise-and-bool.c | 11 typedef bool boolean; typedef 13 typedef _Bool boolean; typedef 16 boolean foo(void); 17 boolean bar(void); 18 boolean baz(void) __attribute__((const)); 19 void sink(boolean); 25 void test(boolean a, boolean b, int *p, volatile int *q, int i) { in test()
|
H A D | warn-integer-constants-in-ternary.c | 12 typedef bool boolean; typedef 14 typedef _Bool boolean; typedef 17 void test(boolean a) { in test() 18 boolean r; in test()
|
H A D | warn-bitwise-negation-bool.c | 9 typedef bool boolean; typedef 11 typedef _Bool boolean; typedef 14 void test(boolean b, int i) { in test()
|
H A D | warn-int-in-bool-context.c | 15 typedef bool boolean; typedef 17 typedef _Bool boolean; typedef 27 boolean r; in test()
|
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/readability/ |
H A D | implicit-bool-conversion.rst | 41 bool boolean = floating; 42 // ^ propose replacement: bool boolean = floating != 0.0f; 59 bool boolean; 60 functionTakingInt(boolean); 61 // ^ propose replacement: functionTakingInt(static_cast<int>(boolean)); 69 - integer expression/literal to boolean (conversion from a single bit bitfield 70 to boolean is explicitly allowed, since there's no ambiguity / information 73 - floating expression/literal to boolean, 75 - pointer/pointer to member/``nullptr``/``NULL`` to boolean, 77 - boolean expressio [all...] |
H A D | simplify-boolean-expr.rst | 1 .. title:: clang-tidy - readability-simplify-boolean-expr 3 readability-simplify-boolean-expr 6 Looks for boolean expressions involving boolean constants and simplifies 7 them to use the appropriate boolean expression directly. Simplifies 8 boolean expressions by application of DeMorgan's Theorem. 87 If `true`, ignore boolean expressions originating from expanded macros. 92 If `true`, conditional boolean return statements at the end of an 97 If `true`, conditional boolean assignments at the end of an ``if/else
|
/llvm-project/polly/lib/External/isl/ |
H A D | isl_test_cpp-checked.cc | 29 static void assert_impl(isl::boolean condition, const char *file, int line, in assert_impl() 67 isl::boolean b_true = empty.is_empty(); in test_return_bool() 68 isl::boolean b_false = univ.is_empty(); in test_return_bool() 69 isl::boolean b_error = null.is_empty(); in test_return_bool() 92 assert(isl::boolean(true).is_true()); in test_return_bool() 93 assert(!isl::boolean(true).is_false()); in test_return_bool() 94 assert(!isl::boolean(true).is_error()); in test_return_bool() 96 assert(isl::boolean(false).is_false()); in test_return_bool() 97 assert(!isl::boolean(false).is_true()); in test_return_bool() 98 assert(!isl::boolean(false).is_error()); in test_return_bool() [all …]
|
/llvm-project/polly/lib/External/isl/cpp/ |
H A D | cpp-checked.h.top | 41 /* Class used to check that isl::checked::boolean, 51 class boolean { 56 friend boolean manage(isl_bool val); 57 boolean(isl_bool val): val(val) {} 59 static boolean error() { 60 return boolean(isl_bool_error); 62 boolean() 65 /* implicit */ boolean(bool val) 85 boolean negate() { 93 boolean operator!() const { [all …]
|
/llvm-project/openmp/runtime/cmake/ |
H A D | LibompCheckFortranFlag.cmake | 13 # this will have ${boolean} = TRUE if the flag succeeds, otherwise false. 14 function(libomp_check_fortran_flag flag boolean) 15 if(NOT DEFINED "${boolean}") 26 check_fortran_source_compiles("${fortran_source}" ${boolean} FAIL_REGEX "${failed_regexes}") 27 set(${boolean} ${${boolean}} PARENT_SCOPE)
|
/llvm-project/polly/lib/External/isl/include/isl/ |
H A D | isl-noexceptions.h | 48 class boolean { 53 friend boolean manage(isl_bool val); 54 boolean(isl_bool val): val(val) {} in boolean() function 56 static boolean error() { in error() 57 return boolean(isl_bool_error); in error() 59 boolean() in boolean() function 62 /* implicit */ boolean(bool val) in boolean() function 82 boolean negate() { in negate() 90 boolean operator!() const { 91 return boolean(*this).negate(); [all …]
|
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
H A D | swapped-arguments.rst | 24 - Conversions from floating-point types to boolean or integral types 25 - Conversions from integral types to boolean or floating-point types 26 - Conversions from boolean to integer types or floating-point types 27 - Conversions from (member) pointers to boolean
|
/llvm-project/clang/test/PCH/ |
H A D | cxx_exprs.cpp | 13 bool boolean; variable 62 bool_literal_result *bool_ptr = &boolean;
|
/llvm-project/libcxx/test/std/concepts/concepts.callable/concept.predicate/ |
H A D | predicate.compile.pass.cpp | 55 struct boolean { struct 58 static_assert(check_lambda([] { return boolean(); })); in __anon8cbae8960302()
|
/llvm-project/llvm/test/CodeGen/NVPTX/ |
H A D | pow2_mask_cmp.ll | 7 ; This produces incorrect code in general when boolean false is 10 ; value will be identical regardless of the boolean representation.
|
/llvm-project/clang-tools-extra/clang-tidy/misc/ |
H A D | NonPrivateMemberVariablesInClassesCheck.cpp | 33 AST_POLYMORPHIC_MATCHER_P(boolean, AST_POLYMORPHIC_SUPPORTED_TYPES(Stmt, Decl), in AST_POLYMORPHIC_MATCHER_P() argument 61 allOf(boolean(IgnoreClassesWithAllMemberVariablesBeingPublic), in registerMatchers()
|
/llvm-project/lldb/source/Plugins/Instruction/ARM64/ |
H A D | EmulateInstructionARM64.cpp | 74 #define boolean bool macro 629 boolean sub_op = op == 1; in EmulateADDSUBImm() 630 boolean setflags = S == 1; in EmulateADDSUBImm() 711 boolean vector = (V == 1); in EmulateLDPSTP() 713 boolean is_signed = false; in EmulateLDPSTP() 714 boolean wback = a_mode != AddrMode_OFF; in EmulateLDPSTP() 715 boolean wb_unknown = false; in EmulateLDPSTP() 716 boolean rt_unknown = false; in EmulateLDPSTP() 1133 boolean iszero = (op == '0'); in EmulateCBZ()
|
/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | SValBuilder.h | 294 nonloc::ConcreteInt makeBoolVal(const ObjCBoolLiteralExpr *boolean) { in makeIntVal() 295 return makeTruthVal(boolean->getValue(), boolean->getType()); 298 nonloc::ConcreteInt makeBoolVal(const CXXBoolLiteralExpr *boolean); in makeBoolVal() 296 makeBoolVal(const ObjCBoolLiteralExpr * boolean) makeBoolVal() argument
|
/llvm-project/clang/test/SemaObjC/ |
H A D | signed-char-bool-conversion.m | 11 Boolean boolean; 17 b = boolean; 37 bp.p = boolean;
|
/llvm-project/lldb/bindings/lua/ |
H A D | lua-wrapper.swig | 27 // Expects a boolean return. 57 // Expects a boolean return.
|
/llvm-project/clang/include/clang/AST/ |
H A D | OperationKinds.def | 142 /// CK_MemberPointerToBoolean - Member pointer to boolean. A check 177 /// CK_PointerToBoolean - Pointer to boolean conversion. A check 195 /// boolean). Variously a bitcast, a truncation, a sign-extension, 201 /// CK_IntegralToBoolean - Integral to boolean. A check against zero. 229 /// CK_FixedPointToBoolean - Fixed point to boolean. 238 /// CK_FloatingToBoolean - Floating point to boolean. 242 // CK_BooleanToSignedIntegral - Convert a boolean to -1 or 0 for true and
|
/llvm-project/llvm/test/CodeGen/ARM/ |
H A D | cmpxchg-O0.ll | 22 ; Materialisation of a boolean is done with sub/clz/lsr 46 ; Materialisation of a boolean is done with sub/clz/lsr 70 ; Materialisation of a boolean is done with sub/clz/lsr
|