Home
last modified time | relevance | path

Searched refs:isBooleanType (Results 1 – 25 of 49) 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.cpp504 if (Tp->isBooleanType() || Tp->isVoidType() || Tp->isVoidPointerType()) in isMoveSafeMethod()
H A DSmartPtrModeling.cpp236 return CD && CD->getConversionType()->isBooleanType(); in isBoolConversionMethod()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSValBuilder.cpp672 if (CastTy->isBooleanType()) in VisitConcreteInt()
694 if (CastTy->isBooleanType()) in VisitGotoLabel()
721 if (CastTy->isBooleanType()) { in VisitMemRegionVal()
876 if (CastTy->isBooleanType()) in VisitConcreteInt()
898 if (CastTy->isBooleanType()) in VisitLocAsInteger()
960 if (!IsUnknownOriginalType && CastTy->isBooleanType()) { in VisitSymbolVal()
H A DSimpleSValBuilder.cpp650 assert(resultTy->isBooleanType() || in evalBinOpNN()
652 assert(symIntExpr->getType()->isBooleanType() || in evalBinOpNN()
H A DExprEngineC.cpp1155 if (U->getType()->isBooleanType() && U->isIncrementOp()) in VisitIncrementDecrementOperator()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConstraintManager.h60 if (!hasComparison && !RetTy->isBooleanType()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
147 Ty->isBooleanType() ? Solver->mkBoolean(Value.getBoolValue()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
H A DSMTConv.h31 if (Ty->isBooleanType()) in mkSort()
273 if (FromTy->isBooleanType()) { in fromCast()
519 if (Ty->isBooleanType()) in getZeroExpr()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaFixItUtils.cpp183 if (T.isBooleanType() && in getScalarZeroExpressionForType()
H A DSemaCast.cpp1459 if (DestType->isBooleanType()) { in TryStaticCast()
1491 Enum->getDecl()->getIntegerType()->isBooleanType() in TryStaticCast()
2241 && !SrcType->isBooleanType() in checkIntToPointerCast()
2503 Self.getLangOpts().MicrosoftExt && !DestType->isBooleanType(); in TryReinterpretCast()
2988 (SrcType->isBooleanType() == DestType->isBooleanType()) && in DiagnoseBadFunctionCast()
3170 if (!DestType->isVoidType() && !DestType->isBooleanType() && in CheckCStyleCast()
3269 !DestType->isBooleanType()) { in CheckCStyleCast()
H A DSemaBoundsSafety.cpp167 if (!E->getType()->isIntegerType() || E->getType()->isBooleanType()) { in CheckCountedByAttrOnField()
H A DSemaHLSL.cpp2899 if (ArgTy->isBooleanType() && CheckBoolSelect(&SemaRef, TheCall)) in CheckBuiltinFunctionCall()
2902 if (VTy && VTy->getElementType()->isBooleanType() && in CheckBuiltinFunctionCall()
3200 if (QT->isBooleanType() || QT->isEnumeralType()) in IsTypedResourceElementCompatible()
3217 if (ElTy->isBooleanType()) in IsTypedResourceElementCompatible()
H A DSemaStmtAsm.cpp739 (OutTy->isBooleanType() ? CK_IntegralToBoolean : CK_IntegralCast); in ActOnGCCAsmStmt()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp1128 assert(!DstType->isBooleanType() && "we should not get here with booleans."); in EmitIntegerTruncationCheck()
1400 if (DstType->isBooleanType() || SrcType->isBooleanType()) in EmitBitfieldConversionCheck()
1491 if (SrcElementType->isBooleanType() && Opts.TreatBooleanAsSigned) { in EmitScalarCast()
1543 if (DstType->isBooleanType()) in EmitScalarConversion()
1579 if (DstType->isBooleanType()) in EmitScalarConversion()
1787 if (DstTy->isBooleanType()) { in EmitComplexToScalarConversion()
1974 if (DstEltType->isBooleanType()) { in VisitConvertVectorExpr()
2742 assert(!DestTy->isBooleanType() && "bool should use PointerToBool"); in VisitCastExpr()
2786 assert(DestTy->isBooleanType() && "Expected dest type to be boolean type"); in VisitCastExpr()
3053 if (isInc && type->isBooleanType()) { in EmitScalarPrePostIncDec()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DCanonicalType.h274 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isBooleanType)
H A DType.h2521 bool isBooleanType() const;
4286 (T->isRealType() && !T->isBooleanType() && !T->isEnumeralType());
8507 return cast<ExtVectorType>(CanonicalType)->getElementType()->isBooleanType();
8843 inline bool Type::isBooleanType() const {
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DTemplateBase.cpp76 if (T->isBooleanType()) { in printIntegral()
H A DASTDiagnostic.cpp1869 if (FromIntType->isBooleanType()) { in PrintAPSInt()
1913 if (IntType->isBooleanType()) { in PrintAPSInt()
H A DAPValue.cpp728 if (Ty->isBooleanType()) in printPretty()
H A DType.cpp2353 return VT->getElementType()->isBooleanType(); in hasBooleanRepresentation()
2356 ET->getDecl()->getIntegerType()->isBooleanType(); in hasBooleanRepresentation()
2360 return isBooleanType(); in hasBooleanRepresentation()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenExprScalar.cpp430 if (isInc && type->isBooleanType()) { in emitScalarPrePostIncDec()
662 if (dstType->isBooleanType()) in emitScalarConversion()
1766 assert(!destTy->isBooleanType() && "bool should use PointerToBool"); in VisitCastExpr()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp636 bool isBoolean = ResultTy->isBooleanType(); in create_OSAtomicCompareAndSwap()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp583 if (CE->getType()->isBooleanType() || CE->getType()->isPointerType()) { in handleConstMemberCall()
/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.cpp988 if (Type->isBooleanType()) { in createValueUnlessSelfReferential()

12