Home
last modified time | relevance | path

Searched refs:boolean (Results 1 – 25 of 163) sorted by relevance

1234567

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dimplicit-bool-conversion.cpp19 bool boolean = true; in implicitConversionFromBoolSimpleCases() local
45 bool boolean = false; in implicitConversionFromBoolInReturnValue() local
46 return boolean; in implicitConversionFromBoolInReturnValue()
52 bool boolean = true; in implicitConversionFromBoolInSingleBoolExpressions() local
53 boolean = b1 ^ b2; in implicitConversionFromBoolInSingleBoolExpressions()
54 boolean = b1 && b2; in implicitConversionFromBoolInSingleBoolExpressions()
56 boolean &= b1; in implicitConversionFromBoolInSingleBoolExpressions()
57 boolean = b1 == true; in implicitConversionFromBoolInSingleBoolExpressions()
74 bool boolean = true; in implicitConversionFromBoollInComplexBoolExpressions() local
89 double doubleFloating = (boolean && (anotherBoolean || boolean)) * 0.3; in implicitConversionFromBoollInComplexBoolExpressions()
[all …]
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dwarn-objc-literal-conversion.mm24 …// 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-15.0.7/openmp/runtime/cmake/
H A DLibompCheckLinkerFlag.cmake15 # this will have ${boolean} = TRUE if the flag succeeds, otherwise FALSE.
16 function(libomp_check_linker_flag flag boolean)
17 if(NOT DEFINED "${boolean}")
35 message(STATUS "Performing Test ${boolean}")
55 set(${boolean} 1 CACHE INTERNAL "Test ${boolean}")
56 message(STATUS "Performing Test ${boolean} - Success")
58 "Performing C Linker Flag test ${boolean} succeeded with the following output:\n"
62 set(${boolean} "" CACHE INTERNAL "Test ${boolean}")
63 message(STATUS "Performing Test ${boolean} - Failed")
65 "Performing C Linker Flag test ${boolean} failed with the following output:\n"
[all …]
H A DLibompCheckFortranFlag.cmake13 # 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-15.0.7/clang/test/Sema/
H A Dwarn-bitwise-and-bool.c11 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);
23 void test(boolean a, boolean b, int *p, volatile int *q, int i) { in test()
H A Dwarn-bitwise-or-bool.c11 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);
23 void test(boolean a, boolean b, int *p, volatile int *q, int i) { in test()
H A Dwarn-integer-constants-in-ternary.c12 typedef bool boolean; typedef
14 typedef _Bool boolean; typedef
17 void test(boolean a) { in test()
18 boolean r; in test()
H A Dwarn-bitwise-negation-bool.c9 typedef bool boolean; typedef
11 typedef _Bool boolean; typedef
14 void test(boolean b, int i) { in test()
H A Dwarn-int-in-bool-context.c14 typedef bool boolean; typedef
16 typedef _Bool boolean; typedef
26 boolean r; in test()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/readability/
H A Dimplicit-bool-conversion.rst41 bool boolean = floating;
59 bool boolean;
60 functionTakingInt(boolean);
73 - floating expression/literal to boolean,
75 - pointer/pointer to member/``nullptr``/``NULL`` to boolean,
77 - boolean expression/literal to integer (conversion from boolean to a single
80 - boolean expression/literal to floating.
87 - ``bool boolean = floating;`` is changed to
88 ``bool boolean = floating == 0.0f;``,
102 - ``int integer = boolean;`` is changed to
[all …]
H A Dsimplify-boolean-expr.rst1 .. 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`, conditional boolean return statements at the end of an
92 If `true`, conditional boolean assignments at the end of an ``if/else
/llvm-project-15.0.7/polly/lib/External/isl/
H A Disl_test_cpp-checked.cc67 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()
175 return isl::boolean::error(); in test_every()
200 return isl::boolean(true); in test_schedule_tree()
208 return isl::boolean(false); in test_schedule_tree()
220 return isl::boolean(); in test_schedule_tree()
[all …]
/llvm-project-15.0.7/polly/lib/External/isl/cpp/
H A Dcpp-checked.h.top46 class boolean {
51 friend boolean manage(isl_bool val);
52 boolean(isl_bool val): val(val) {}
54 static boolean error() {
55 return boolean(isl_bool_error);
57 boolean()
60 /* implicit */ boolean(bool val)
80 boolean negate() {
88 boolean operator!() const {
89 return boolean(*this).negate();
[all …]
/llvm-project-15.0.7/polly/lib/External/isl/include/isl/
H A Disl-noexceptions.h48 class boolean {
56 static boolean error() { in error()
59 boolean() in boolean() function
82 boolean negate() { in negate()
90 boolean operator!() const {
96 return boolean(val); in manage()
6200 return boolean(); in isa_type()
6418 return boolean(); in isa_type()
7383 return boolean(); in isa_type()
10894 boolean map::every_map(const std::function<boolean(isl::map)> &test) const in every_map()
[all …]
/llvm-project-15.0.7/clang/test/PCH/
H A Dcxx_exprs.cpp13 bool boolean; variable
62 bool_literal_result *bool_ptr = &boolean;
/llvm-project-15.0.7/libcxx/test/std/concepts/concepts.callable/concept.predicate/
H A Dpredicate.compile.pass.cpp55 struct boolean { struct
58 static_assert(check_lambda([] { return boolean(); })); in __anon06d38fd30302()
/llvm-project-15.0.7/llvm/test/CodeGen/NVPTX/
H A Dpow2_mask_cmp.ll7 ; This produces incorrect code in general when boolean false is
10 ; value will be identical regardless of the boolean representation.
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DNonPrivateMemberVariablesInClassesCheck.cpp35 AST_POLYMORPHIC_MATCHER_P(boolean, AST_POLYMORPHIC_SUPPORTED_TYPES(Stmt, Decl), in AST_POLYMORPHIC_MATCHER_P() argument
63 allOf(boolean(IgnoreClassesWithAllMemberVariablesBeingPublic), in registerMatchers()
/llvm-project-15.0.7/lldb/source/Plugins/Instruction/ARM64/
H A DEmulateInstructionARM64.cpp74 #define boolean bool macro
627 boolean sub_op = op == 1; in EmulateADDSUBImm()
628 boolean setflags = S == 1; in EmulateADDSUBImm()
708 boolean vector = (V == 1); in EmulateLDPSTP()
710 boolean is_signed = false; in EmulateLDPSTP()
711 boolean wback = a_mode != AddrMode_OFF; in EmulateLDPSTP()
712 boolean wb_unknown = false; in EmulateLDPSTP()
713 boolean rt_unknown = false; in EmulateLDPSTP()
1112 boolean iszero = (op == '0'); in EmulateCBZ()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSValBuilder.h275 nonloc::ConcreteInt makeBoolVal(const ObjCBoolLiteralExpr *boolean) { in makeBoolVal() argument
276 return makeTruthVal(boolean->getValue(), boolean->getType()); in makeBoolVal()
279 nonloc::ConcreteInt makeBoolVal(const CXXBoolLiteralExpr *boolean);
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dsigned-char-bool-conversion.m11 Boolean boolean;
17 b = boolean;
37 bp.p = boolean;
/llvm-project-15.0.7/lldb/bindings/lua/
H A Dlua-wrapper.swig26 // Expects a boolean return.
55 // Expects a boolean return.
/llvm-project-15.0.7/lldb/test/Shell/Driver/
H A DTestNoUseColor.test2 NOCOLOR: use-color (boolean) = false
/llvm-project-15.0.7/clang/include/clang/AST/
H A DOperationKinds.def141 /// CK_MemberPointerToBoolean - Member pointer to boolean. A check
176 /// CK_PointerToBoolean - Pointer to boolean conversion. A check
194 /// boolean). Variously a bitcast, a truncation, a sign-extension,
200 /// CK_IntegralToBoolean - Integral to boolean. A check against zero.
228 /// CK_FixedPointToBoolean - Fixed point to boolean.
237 /// CK_FloatingToBoolean - Floating point to boolean.
241 // CK_BooleanToSignedIntegral - Convert a boolean to -1 or 0 for true and
/llvm-project-15.0.7/polly/include/polly/
H A DZoneAlgo.h372 isl::boolean isNormalized(isl::map Map);
373 isl::boolean isNormalized(isl::union_map Map);

1234567