Home
last modified time | relevance | path

Searched refs:Bool (Results 1 – 25 of 105) sorted by relevance

12345

/llvm-project-15.0.7/lldb/test/API/lang/cpp/chained-calls/
H A Dmain.cpp1 class Bool { class
3 Bool operator&(const Bool other) in operator &()
5 Bool result; in operator &()
13 bool get(Bool object) in get()
18 Bool set(bool value) in set()
20 Bool result; in set()
27 Bool t = set(true); in main()
28 Bool f = set(false); in main()
/llvm-project-15.0.7/clang/test/Sema/
H A Dcast.c19 typedef _Bool Bool; typedef
32 (void) (Bool) v; in testBool()
46 (void) (Bool) v; in testInt()
68 (void) (Bool) v; in testLong()
82 (void) (Bool) v; in testFloat()
94 (void) (Bool) v; in testDouble()
106 (void) (Bool) v; in testCI()
118 (void) (Bool) v; in testCLong()
130 (void) (Bool) v; in testCFloat()
154 (void)(Bool) v; in testVoidPtr()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DSimplifyBooleanExprCheck.cpp304 return Bool->getValue(); in getAsBoolLiteral()
319 bool Bool = false; member
367 if (*Bool) in VisitIfStmt()
382 if (ElseReturnBool && ThenReturnBool.Bool != ElseReturnBool.Bool) { in VisitIfStmt()
422 ElseAssignment.Bool != ThenAssignment.Bool) { in VisitIfStmt()
474 ThenReturnBool.Bool != TrailingReturnBool.Bool) { in VisitCompoundStmt()
498 ThenReturnBool.Bool != TrailingReturnBool.Bool) { in VisitCompoundStmt()
615 const CXXBoolLiteralExpr *Bool; in reportBinOp() local
624 if (Bool->getBeginLoc().isMacroID()) in reportBinOp()
631 bool BoolValue = Bool->getValue(); in reportBinOp()
[all …]
H A DImplicitBoolConversionCheck.h26 return LangOpts.Bool; in isLanguageVersionSupported()
/llvm-project-15.0.7/clang/test/Parser/
H A Dcxx-ambig-init-templ.cpp96 template<bool> struct Bool { Bool(int); }; struct
101 int f(Bool<true> = X<Y, Bool<in_class> >(0));
104 int g(Bool<true> = Z<Y, Bool<in_class> = Bool<false>(0));
/llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.friend/
H A Dp1.cpp92 class Bool;
94 template <class T> T transform(class Bool, T);
96 class Bool { class
98 friend bool transform<>(Bool, bool);
104 static T compute(Bool b) { in compute()
109 template <class T> T transform(Bool b, T value) { in transform()
115 template bool transform(Bool, bool);
116 template int transform(Bool, int); // expected-note {{requested here}}
/llvm-project-15.0.7/clang/include/clang/AST/
H A DPrettyPrinter.h67 SuppressDefaultTemplateArgs(true), Bool(LO.Bool), in PrintingPolicy()
86 Bool = true; in adjustForCPlusPlus()
193 unsigned Bool : 1; member
H A DTypeProperties.td266 def : Property<"noReturn", Bool> {
269 def : Property<"hasRegParm", Bool> {
284 def : Property<"noCfCheck", Bool> {
287 def : Property<"cmseNSCall", Bool> {
303 def : Property<"variadic", Bool> {
483 def : Property<"dependent", Bool> {
496 def : Property<"dependent", Bool> {
653 def : Property<"dependent", Bool> {
902 def : Property<"isReadOnly", Bool> {
912 def : Property<"isUnsigned", Bool> {
[all …]
H A DPropertiesBase.td80 def Bool : PropertyType<"bool">;
359 def : Property<"hasFiller", Bool> {
426 def : Property<"isDerived", Bool> {
463 def : Property<"hasLValuePath", Bool> {
466 def : Property<"isLValueOnePastTheEnd", Bool> {
469 def : Property<"isExpr", Bool> {
472 def : Property<"isTypeInfo", Bool> {
475 def : Property<"hasBase", Bool> {
478 def : Property<"isNullPtr", Bool> {
663 def : Property<"hasTemplateKeyword", Bool> {
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/
H A DPDBTypes.h344 Bool = 10, enumerator
407 Bool, enumerator
414 explicit Variant(bool V) : Type(PDB_VariantType::Bool) { Value.Bool = V; } in Variant()
455 bool Bool; member
471 case Bool: in isIntegralType()
492 VARIANT_WIDTH(Bool, 1u) in getBitWidth()
517 VARIANT_APSINT(Bool, 1u, true) in toAPSInt()
559 VARIANT_EQUAL_CASE(Bool)
/llvm-project-15.0.7/clang/test/Layout/
H A Daix-bitfield-alignment.cpp21 enum class Bool : bool { False = 0, enum
25 Bool b : 1;
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dubsan-bitfields.cpp23 struct Bool { struct
30 bool load_cpp_bool(Bool *b) { in load_cpp_bool() argument
/llvm-project-15.0.7/clang/test/CXX/class/class.compare/class.rel/
H A Dp1.cpp12 enum Bool : bool {}; enum
16 …friend Bool operator<=(const Bad&, const Bad&) = default; // expected-error {{return type for defa…
/llvm-project-15.0.7/clang/test/CXX/class/class.compare/class.eq/
H A Dp1.cpp12 enum Bool : bool {}; enum
16 …friend Bool operator==(const Bad&, const Bad&) = default; // expected-error {{return type for defa…
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dsext-i1.ll124 ; sext (xor Bool, -1) --> sub (zext Bool), 1
145 ; sext (xor Bool, -1) --> sub (zext Bool), 1
164 ; sext (xor Bool, -1) --> sub (zext Bool), 1
/llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/
H A DMsgPackDocument.h57 bool Bool; member
94 return Bool; in getBool()
114 return Bool; in getBool()
168 return Lhs.Bool < Rhs.Bool;
344 N.Bool = V; in getNode()
/llvm-project-15.0.7/clang/test/Index/
H A Dannotate-tokens-cxx0x.cpp12 typedef bool Bool; in test() typedef
13 bool b2 = __is_trivially_constructible(Integer, Float, Bool); in test()
H A Dcomplete-super.m4 typedef int Bool; typedef
8 + (void)select:(Bool)condition first:(int)x second:(int)y; argument
15 + (void)select:(Bool)condition first:(int)x second:(int)y; argument
23 + (void)select:(Bool)condition first:(int)a second:(int)b { argument
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Deasily-swappable-parameters-ignore-default.cpp9 using Bool = A; typedef
42 void f2(IgnoredTypes::Bool Foo, IgnoredTypes::Bool Bar) {} in f2()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DBitFieldsTest.cpp20 using Bool = Bitfield::Element<bool, 0, 1>; in TEST() typedef
21 Bitfield::set<Bool>(Storage, true); in TEST()
24 EXPECT_EQ(Bitfield::get<Bool>(Storage), true); in TEST()
55 EXPECT_EQ(Bitfield::get<Bool>(Storage), false); in TEST()
61 EXPECT_EQ(Bitfield::get<Bool>(Storage), true); in TEST()
/llvm-project-15.0.7/llvm/test/CodeGen/SPIRV/
H A DAtomicCompareExchange.ll9 ; CHECK-SPIRV-DAG: %[[#Bool:]] = OpTypeBool
10 ; CHECK-SPIRV-DAG: %[[#Struct:]] = OpTypeStruct %[[#Int]] %[[#Bool]]
23 ; CHECK-SPIRV: %[[#]] = OpCompositeExtract %[[#Bool]] %[[#Composite_1]] 1
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DOpcodes.td19 def Bool : Type;
69 Uint32, Sint64, Uint64, Bool];
120 // [Bool] -> [], jumps if true.
122 // [Bool] -> [], jumps if false.
181 def ConstBool : ConstOpcode<Bool, ArgBool>;
/llvm-project-15.0.7/clang/test/OpenMP/
H A Dfor_codegen.cpp658 struct Bool { struct
659 Bool(bool b) : b(b) {} in Bool() function
697 typedef Bool BoolType;
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dcurrent-instantiation.cpp170 struct Bool { struct
173 struct True : public Bool<true> {};
174 struct False : public Bool<false> {};
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dexplicit.cpp116 struct Bool { in testBool() struct
123 Bool b; in testBool()

12345