Home
last modified time | relevance | path

Searched refs:isBooleanType (Results 1 – 25 of 41) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DBoolAssignmentChecker.cpp43 static bool isBooleanType(QualType Ty) { in isBooleanType() function
44 if (Ty->isBooleanType()) // C++ or C99 in isBooleanType()
67 if (!isBooleanType(valTy)) in checkBind()
H A DMoveChecker.cpp500 if (Tp->isBooleanType() || Tp->isVoidType() || Tp->isVoidPointerType()) in isMoveSafeMethod()
H A DSmartPtrModeling.cpp241 return CD && CD->getConversionType()->isBooleanType(); in isBoolConversionMethod()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSValBuilder.cpp657 if (CastTy->isBooleanType()) in evalCastSubKind()
678 if (CastTy->isBooleanType()) in evalCastSubKind()
712 if (CastTy->isBooleanType()) { in evalCastSubKind()
869 if (CastTy->isBooleanType()) in evalCastSubKind()
895 if (CastTy->isBooleanType()) in evalCastSubKind()
959 if (!IsUnknownOriginalType && CastTy->isBooleanType()) { in evalCastSubKind()
H A DSimpleSValBuilder.cpp577 assert(resultTy->isBooleanType() || in evalBinOpNN()
579 assert(symIntExpr->getType()->isBooleanType() || in evalBinOpNN()
H A DExprEngineC.cpp1123 if (U->getType()->isBooleanType() && U->isIncrementOp()) in VisitIncrementDecrementOperator()
H A DBugReporterVisitors.cpp2997 if (Ty->isBooleanType()) in printValue()
3002 if (Ty->isBooleanType()) in printValue()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DContext.cpp67 if (T->isBooleanType()) in classify()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConstraintManager.h55 if (!hasComparison && !RetTy->isBooleanType()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
142 Ty->isBooleanType() ? Solver->mkBoolean(Value.getBoolValue()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
H A DSMTConv.h29 if (Ty->isBooleanType()) in mkSort()
271 if (FromTy->isBooleanType()) { in fromCast()
493 if (Ty->isBooleanType()) in getZeroExpr()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaFixItUtils.cpp179 if (T.isBooleanType() && in getScalarZeroExpressionForType()
H A DSemaCast.cpp1327 if (DestType->isBooleanType()) { in TryStaticCast()
1359 Enum->getDecl()->getIntegerType()->isBooleanType() in TryStaticCast()
2151 && !SrcType->isBooleanType() in checkIntToPointerCast()
2408 Self.getLangOpts().MicrosoftExt && !DestType->isBooleanType(); in TryReinterpretCast()
2807 (SrcType->isBooleanType() == DestType->isBooleanType()) && in DiagnoseBadFunctionCast()
3044 !DestType->isBooleanType()) { in CheckCStyleCast()
H A DSemaStmtAsm.cpp680 (OutTy->isBooleanType() ? CK_IntegralToBoolean : CK_IntegralCast); in ActOnGCCAsmStmt()
H A DSemaChecking.cpp219 return Ty->isIntegerType() && !Ty->isEnumeralType() && !Ty->isBooleanType(); in SemaBuiltinAlignment()
11658 !OtherT->isBooleanType() && Other->isKnownToHaveBooleanValue(); in CheckTautologicalComparison()
11902 if (BitfieldType->isBooleanType()) in AnalyzeBitFieldAssignment()
11919 if (Bitfield->getType()->isBooleanType()) in AnalyzeBitFieldAssignment()
12610 if (S.SourceMgr.isInSystemMacro(CC) || Target->isBooleanType()) in CheckImplicitConversion()
12677 if (Target->isBooleanType() && isa<CallExpr>(E)) { in CheckImplicitConversion()
12686 InnerE->getType()->isBooleanType()) { in CheckImplicitConversion()
12813 if (Target->isBooleanType()) in CheckImplicitConversion()
12985 if (T->isBooleanType()) in CheckConditionalOperator()
13059 << OrigE->getSourceRange() << T->isBooleanType() in AnalyzeImplicitConversions()
H A DSemaCoroutine.cpp474 (!RetType->isBooleanType() && !RetType->isVoidType())) { in buildCoawaitCalls()
H A DSemaOverload.cpp232 if (getToType(1)->isBooleanType() && in isPointerConversionToBool()
1728 if (!ToType->isBooleanType()) in IsStandardConversion()
1849 } else if (ToType->isBooleanType() && in IsStandardConversion()
2074 if (FromType->isPromotableIntegerType() && !FromType->isBooleanType() && in IsIntegralPromotion()
2214 if (FromType->isBooleanType() && To->getKind() == BuiltinType::Int) { in IsIntegralPromotion()
5575 SCS.getToType(2)->isBooleanType(); in CheckConvertedConstantConversions()
13595 !FnDecl->getReturnType()->isBooleanType()) { in CreateOverloadedBinOp()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp1027 assert(!DstType->isBooleanType() && "we should not get here with booleans."); in EmitIntegerTruncationCheck()
1225 if (SrcElementType->isBooleanType() && Opts.TreatBooleanAsSigned) { in EmitScalarCast()
1262 if (DstType->isBooleanType()) in EmitScalarConversion()
1298 if (DstType->isBooleanType()) in EmitScalarConversion()
1506 if (DstTy->isBooleanType()) { in EmitComplexToScalarConversion()
1692 if (DstEltType->isBooleanType()) { in VisitConvertVectorExpr()
2254 assert(!DestTy->isBooleanType() && "bool should use PointerToBool"); in VisitCastExpr()
2466 if (isInc && type->isBooleanType()) { in EmitScalarPrePostIncDec()
2482 if (!type->isBooleanType() && type->isIntegerType() && in EmitScalarPrePostIncDec()
2521 if (isInc && type->isBooleanType()) { in EmitScalarPrePostIncDec()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DCanonicalType.h273 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isBooleanType)
H A DType.h1974 bool isBooleanType() const;
3436 (T->isRealType() && !T->isBooleanType() && !T->isEnumeralType());
7070 inline bool Type::isBooleanType() const {
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DTemplateBase.cpp78 if (T->isBooleanType()) { in printIntegral()
H A DASTDiagnostic.cpp1757 if (FromIntType->isBooleanType()) { in PrintAPSInt()
1801 if (IntType->isBooleanType()) { in PrintAPSInt()
H A DAPValue.cpp650 if (Ty->isBooleanType()) in printPretty()
H A DASTContext.cpp3890 if (!EltTy->isBooleanType() && \ in getScalableVectorType()
3901 if (EltTy->isBooleanType() && NumElts == NumEls) \ in getScalableVectorType()
3908 if (!EltTy->isBooleanType() && \ in getScalableVectorType()
3915 if (EltTy->isBooleanType() && NumElts == NumEls) \ in getScalableVectorType()
10135 if (T->isBooleanType()) in getIntWidth()
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp606 bool isBoolean = ResultTy->isBooleanType(); in create_OSAtomicCompareAndSwap()
/freebsd-13.1/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp1009 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression()

12