/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | BoolAssignmentChecker.cpp | 45 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 D | MoveChecker.cpp | 501 if (Tp->isBooleanType() || Tp->isVoidType() || Tp->isVoidPointerType()) in isMoveSafeMethod()
|
H A D | SmartPtrModeling.cpp | 239 return CD && CD->getConversionType()->isBooleanType(); in isBoolConversionMethod()
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | SMTConstraintManager.h | 59 if (!hasComparison && !RetTy->isBooleanType()) in REGISTER_TRAIT_WITH_PROGRAMSTATE() 146 Ty->isBooleanType() ? Solver->mkBoolean(Value.getBoolValue()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
|
H A D | SMTConv.h | 29 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 D | SemaBoundsSafety.cpp | 138 if (!E->getType()->isIntegerType() || E->getType()->isBooleanType()) { in CheckCountedByAttrOnField()
|
H A D | SemaFixItUtils.cpp | 183 if (T.isBooleanType() && in getScalarZeroExpressionForType()
|
H A D | SemaCast.cpp | 1384 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 D | SemaStmtAsm.cpp | 698 (OutTy->isBooleanType() ? CK_IntegralToBoolean : CK_IntegralCast); in ActOnGCCAsmStmt()
|
H A D | SemaChecking.cpp | 328 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 D | SemaOverload.cpp | 282 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 D | SemaCoroutine.cpp | 444 (!RetType->isBooleanType() && !RetType->isVoidType())) { in buildCoawaitCalls()
|
H A D | SemaExpr.cpp | 3624 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 D | Context.cpp | 128 if (T->isBooleanType()) in classify()
|
H A D | InterpBuiltin.cpp | 761 assert(Func->getDecl()->getReturnType()->isBooleanType()); in interp__builtin_overflowop()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprScalar.cpp | 1088 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 D | CanonicalType.h | 273 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isBooleanType)
|
H A D | Type.h | 2468 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 D | TemplateBase.cpp | 80 if (T->isBooleanType()) { in printIntegral()
|
H A D | ASTDiagnostic.cpp | 1830 if (FromIntType->isBooleanType()) { in PrintAPSInt() 1874 if (IntType->isBooleanType()) { in PrintAPSInt()
|
H A D | APValue.cpp | 718 if (Ty->isBooleanType()) in printPretty()
|
/freebsd/contrib/llvm-project/clang/lib/Edit/ |
H A D | RewriteObjCFoundationAPI.cpp | 1007 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | DataflowEnvironment.cpp | 989 if (Type->isBooleanType()) { in createValueUnlessSelfReferential()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngineC.cpp | 1115 if (U->getType()->isBooleanType() && U->isIncrementOp()) in VisitIncrementDecrementOperator()
|
H A D | BugReporterVisitors.cpp | 3286 if (Ty->isBooleanType()) in printValue() 3291 if (Ty->isBooleanType()) in printValue()
|