Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DBoolAssignmentChecker.cpp42 static bool isBooleanType(QualType Ty) { in isBooleanType() function
43 if (Ty->isBooleanType()) // C++ or C99 in isBooleanType()
66 if (!isBooleanType(valTy)) in checkBind()
H A DMoveChecker.cpp487 if (Tp->isBooleanType() || Tp->isVoidType() || Tp->isVoidPointerType()) in isMoveSafeMethod()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConstraintManager.h49 if (!hasComparison && !RetTy->isBooleanType()) in assumeSym()
137 Ty->isBooleanType() ? Solver->mkBoolean(Value.getBoolValue()) in getSymVal()
H A DSMTConv.h30 if (Ty->isBooleanType()) in mkSort()
268 if (FromTy->isBooleanType()) { in fromCast()
477 if (Ty->isBooleanType()) in getZeroExpr()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp112 if (castTy->isBooleanType()) { in evalCastFromNonLoc()
149 if (castTy->isBooleanType()) { in evalCastFromLoc()
694 assert(resultTy->isBooleanType() || in evalBinOpNN()
696 assert(symIntExpr->getType()->isBooleanType() || in evalBinOpNN()
H A DSValBuilder.cpp532 if (castTy->isBooleanType()) { in evalCast()
H A DExprEngineC.cpp1082 if (U->getType()->isBooleanType() && U->isIncrementOp()) in VisitIncrementDecrementOperator()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaFixItUtils.cpp180 if (T.isBooleanType() && in getScalarZeroExpressionForType()
H A DSemaCast.cpp1131 if (DestType->isBooleanType()) { in TryStaticCast()
1939 && !SrcType->isBooleanType() in checkIntToPointerCast()
2174 !DestType->isBooleanType(); in TryReinterpretCast()
2459 (SrcType->isBooleanType() == DestType->isBooleanType()) && in DiagnoseBadFunctionCast()
H A DSemaStmtAsm.cpp638 (OutTy->isBooleanType() ? CK_IntegralToBoolean : CK_IntegralCast); in ActOnGCCAsmStmt()
H A DSemaCoroutine.cpp476 (!RetType->isBooleanType() && !RetType->isVoidType())) { in buildCoawaitCalls()
H A DSemaOverload.cpp224 if (getToType(1)->isBooleanType() && in isPointerConversionToBool()
1662 if (!ToType->isBooleanType()) in IsStandardConversion()
1783 } else if (ToType->isBooleanType() && in IsStandardConversion()
1997 if (FromType->isPromotableIntegerType() && !FromType->isBooleanType() && in IsIntegralPromotion()
2136 if (FromType->isBooleanType() && To->getKind() == BuiltinType::Int) { in IsIntegralPromotion()
5353 SCS.getToType(2)->isBooleanType(); in CheckConvertedConstantConversions()
H A DSemaExpr.cpp3242 if (!QT->isIntegerType() || QT->isBooleanType() || QT->isCharType()) { in CheckLoopHintExpr()
6284 if (VectorTy->isExtVectorType() && SplattedExpr->getType()->isBooleanType()) { in prepareVectorSplat()
7371 if (E->getType()->isBooleanType()) in ExprLooksBoolean()
10156 if (LHSStrippedType->isBooleanType() != RHSStrippedType->isBooleanType()) { in checkArithmeticOrEnumeralThreeWayCompare()
10841 !LHS.get()->getType()->isBooleanType() && in CheckLogicalOperands()
10852 if ((getLangOpts().Bool && !RHS.get()->getType()->isBooleanType() && in CheckLogicalOperands()
11596 if (S.getLangOpts().CPlusPlus && ResType->isBooleanType()) { in CheckIncrementDecrementOperand()
H A DSemaChecking.cpp10138 !OtherT->isBooleanType() && Other->isKnownToHaveBooleanValue(); in CheckTautologicalComparison()
10333 if (BitfieldType->isBooleanType()) in AnalyzeBitFieldAssignment()
10350 if (Bitfield->getType()->isBooleanType()) in AnalyzeBitFieldAssignment()
10931 if (S.SourceMgr.isInSystemMacro(CC) || Target->isBooleanType()) in CheckImplicitConversion()
10997 if (Target->isBooleanType() && isa<CallExpr>(E)) { in CheckImplicitConversion()
11006 InnerE->getType()->isBooleanType()) { in CheckImplicitConversion()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprScalar.cpp1022 assert(!DstType->isBooleanType() && "we should not get here with booleans."); in EmitIntegerTruncationCheck()
1210 } else if (DstType->isBooleanType()) { in EmitScalarConversion()
1235 if (DstType->isBooleanType()) in EmitScalarConversion()
1377 if (SrcType->isBooleanType() && Opts.TreatBooleanAsSigned) { in EmitScalarConversion()
1510 if (DstTy->isBooleanType()) { in EmitComplexToScalarConversion()
1678 if (DstEltType->isBooleanType()) { in VisitConvertVectorExpr()
2166 assert(!DestTy->isBooleanType() && "bool should use PointerToBool"); in VisitCastExpr()
2333 if (isInc && type->isBooleanType()) { in EmitScalarPrePostIncDec()
2349 if (!type->isBooleanType() && type->isIntegerType() && in EmitScalarPrePostIncDec()
2387 if (isInc && type->isBooleanType()) { in EmitScalarPrePostIncDec()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DTemplateBase.cpp71 if (T->isBooleanType() && !Policy.MSVCFormatting) { in printIntegral()
H A DAPValue.cpp392 if (Ty->isBooleanType()) in printPretty()
H A DASTDiagnostic.cpp1738 if (FromIntType->isBooleanType()) { in PrintAPSInt()
1782 if (IntType->isBooleanType()) { in PrintAPSInt()
H A DMicrosoftMangle.cpp1333 mangleIntegerLiteral(Value, E->getType()->isBooleanType()); in mangleExpression()
1448 TA.getIntegralType()->isBooleanType()); in mangleTemplateArg()
H A DExpr.cpp138 if (E->getType()->isBooleanType()) return true; in isKnownToHaveBooleanValue()
1720 assert(!getType()->isBooleanType() && "unheralded conversion to bool"); in CastConsistency()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DCanonicalType.h272 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isBooleanType)
H A DType.h1910 bool isBooleanType() const;
6657 inline bool Type::isBooleanType() const {
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DBodyFarm.cpp605 bool isBoolean = ResultTy->isBooleanType(); in create_OSAtomicCompareAndSwap()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp1010 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/
H A DASTMatchers.h5134 return Node.isBooleanType(); in AST_MATCHER()

12