Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DBoolAssignmentChecker.cpp45 static bool isBooleanType(QualType Ty) { in isBooleanType() function
46 if (Ty->isBooleanType()) // C++ or C99 in isBooleanType()
69 if (!isBooleanType(RegTy)) in checkBind()
H A DMoveChecker.cpp501 if (Tp->isBooleanType() || Tp->isVoidType() || Tp->isVoidPointerType()) in isMoveSafeMethod()
H A DSmartPtrModeling.cpp239 return CD && CD->getConversionType()->isBooleanType(); in isBoolConversionMethod()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConstraintManager.h59 if (!hasComparison && !RetTy->isBooleanType()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
146 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()
517 if (Ty->isBooleanType()) in getZeroExpr()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaBoundsSafety.cpp138 if (!E->getType()->isIntegerType() || E->getType()->isBooleanType()) { in CheckCountedByAttrOnField()
H A DSemaFixItUtils.cpp183 if (T.isBooleanType() && in getScalarZeroExpressionForType()
H A DSemaCast.cpp1384 if (DestType->isBooleanType()) { in TryStaticCast()
1416 Enum->getDecl()->getIntegerType()->isBooleanType() in TryStaticCast()
2209 && !SrcType->isBooleanType() in checkIntToPointerCast()
2472 Self.getLangOpts().MicrosoftExt && !DestType->isBooleanType(); in TryReinterpretCast()
2900 (SrcType->isBooleanType() == DestType->isBooleanType()) && in DiagnoseBadFunctionCast()
3082 if (!DestType->isVoidType() && !DestType->isBooleanType() && in CheckCStyleCast()
3172 !DestType->isBooleanType()) { in CheckCStyleCast()
H A DSemaStmtAsm.cpp698 (OutTy->isBooleanType() ? CK_IntegralToBoolean : CK_IntegralCast); in ActOnGCCAsmStmt()
H A DSemaChecking.cpp328 return Ty->isIntegerType() && !Ty->isEnumeralType() && !Ty->isBooleanType(); in BuiltinAlignment()
9987 !OtherT->isBooleanType() && Other->isKnownToHaveBooleanValue(); in CheckTautologicalComparison()
10234 if (BitfieldType->isBooleanType()) in AnalyzeBitFieldAssignment()
10842 if (SourceMgr.isInSystemMacro(CC) || Target->isBooleanType()) in CheckImplicitConversion()
10933 if (Target->isBooleanType() && isa<CallExpr>(E)) { in CheckImplicitConversion()
10942 InnerE->getType()->isBooleanType()) { in CheckImplicitConversion()
11069 if (Target->isBooleanType()) in CheckImplicitConversion()
11243 if (T->isBooleanType()) in CheckConditionalOperator()
11320 << OrigE->getSourceRange() << T->isBooleanType() in AnalyzeImplicitConversions()
H A DSemaOverload.cpp282 if (getToType(1)->isBooleanType() && in isPointerConversionToBool()
1941 if (ToType->isBooleanType() && FromType->isArithmeticType()) { in IsVectorElementConversion()
2120 if (!ToType->isBooleanType()) in IsStandardConversion()
2248 } else if (ToType->isBooleanType() && in IsStandardConversion()
2455 if (Context.isPromotableIntegerType(FromType) && !FromType->isBooleanType() && in IsIntegralPromotion()
2595 if (FromType->isBooleanType() && To->getKind() == BuiltinType::Int) { in IsIntegralPromotion()
5968 SCS.getToType(2)->isBooleanType(); in CheckConvertedConstantConversions()
14543 !FnDecl->getReturnType()->isBooleanType()) { in CreateOverloadedBinOp()
H A DSemaCoroutine.cpp444 (!RetType->isBooleanType() && !RetType->isVoidType())) { in buildCoawaitCalls()
H A DSemaExpr.cpp3624 if (!QT->isIntegerType() || QT->isBooleanType() || QT->isCharType()) { in CheckLoopHintExpr()
7605 if (VectorTy->isExtVectorType() && SplattedExpr->getType()->isBooleanType()) { in prepareVectorSplat()
8599 if (E->getType()->isBooleanType()) in ExprLooksBoolean()
9669 if (getLangOpts().C23 && LHSType->isBooleanType() && in CheckSingleAssignmentConstraints()
11919 if (LHSStrippedType->isBooleanType() != RHSStrippedType->isBooleanType()) { in checkArithmeticOrEnumeralThreeWayCompare()
13026 !LHS.get()->getType()->isBooleanType() && in CheckLogicalOperands()
13037 if ((getLangOpts().CPlusPlus && !RHS.get()->getType()->isBooleanType() && in CheckLogicalOperands()
13799 if (S.getLangOpts().CPlusPlus && ResType->isBooleanType()) { in CheckIncrementDecrementOperand()
16416 if (!PromoteType.isNull() && !UnderlyingType->isBooleanType() && in BuildVAArgExpr()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DContext.cpp128 if (T->isBooleanType()) in classify()
H A DInterpBuiltin.cpp761 assert(Func->getDecl()->getReturnType()->isBooleanType()); in interp__builtin_overflowop()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp1088 assert(!DstType->isBooleanType() && "we should not get here with booleans."); in EmitIntegerTruncationCheck()
1326 if (DstType->isBooleanType() || SrcType->isBooleanType()) in EmitBitfieldConversionCheck()
1416 if (SrcElementType->isBooleanType() && Opts.TreatBooleanAsSigned) { in EmitScalarCast()
1464 if (DstType->isBooleanType()) in EmitScalarConversion()
1500 if (DstType->isBooleanType()) in EmitScalarConversion()
1708 if (DstTy->isBooleanType()) { in EmitComplexToScalarConversion()
1894 if (DstEltType->isBooleanType()) { in VisitConvertVectorExpr()
2534 assert(!DestTy->isBooleanType() && "bool should use PointerToBool"); in VisitCastExpr()
2573 assert(DestTy->isBooleanType() && "Expected dest type to be boolean type"); in VisitCastExpr()
2804 if (isInc && type->isBooleanType()) { in EmitScalarPrePostIncDec()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DCanonicalType.h273 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isBooleanType)
H A DType.h2468 bool isBooleanType() const;
4176 (T->isRealType() && !T->isBooleanType() && !T->isEnumeralType());
8118 return cast<ExtVectorType>(CanonicalType)->getElementType()->isBooleanType();
8426 inline bool Type::isBooleanType() const {
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DTemplateBase.cpp80 if (T->isBooleanType()) { in printIntegral()
H A DASTDiagnostic.cpp1830 if (FromIntType->isBooleanType()) { in PrintAPSInt()
1874 if (IntType->isBooleanType()) { in PrintAPSInt()
H A DAPValue.cpp718 if (Ty->isBooleanType()) in printPretty()
/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp1007 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp989 if (Type->isBooleanType()) { in createValueUnlessSelfReferential()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineC.cpp1115 if (U->getType()->isBooleanType() && U->isIncrementOp()) in VisitIncrementDecrementOperator()
H A DBugReporterVisitors.cpp3286 if (Ty->isBooleanType()) in printValue()
3291 if (Ty->isBooleanType()) in printValue()

12