Home
last modified time | relevance | path

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

12

/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
DBoolAssignmentChecker.cpp48 static bool isBooleanType(QualType Ty) { in isBooleanType() function
49 if (Ty->isBooleanType()) // C++ or C99 in isBooleanType()
72 if (!isBooleanType(valTy)) in checkBind()
DConversionChecker.cpp60 if (Cast->getType()->isBooleanType()) in checkPreStmt()
DMoveChecker.cpp499 if (Tp->isBooleanType() || Tp->isVoidType() || Tp->isVoidPointerType()) in isMoveSafeMethod()
DSmartPtrModeling.cpp239 return CD && CD->getConversionType()->isBooleanType(); in isBoolConversionMethod()
/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
DSValBuilder.cpp666 if (CastTy->isBooleanType()) in VisitLocConcreteInt()
688 if (CastTy->isBooleanType()) in VisitLocGotoLabel()
715 if (CastTy->isBooleanType()) { in VisitLocMemRegionVal()
870 if (CastTy->isBooleanType()) in VisitNonLocConcreteInt()
892 if (CastTy->isBooleanType()) in VisitNonLocLocAsInteger()
954 if (!IsUnknownOriginalType && CastTy->isBooleanType()) { in VisitNonLocSymbolVal()
DSimpleSValBuilder.cpp621 assert(resultTy->isBooleanType() || in evalBinOpNN()
623 assert(symIntExpr->getType()->isBooleanType() || in evalBinOpNN()
DExprEngineC.cpp1127 if (U->getType()->isBooleanType() && U->isIncrementOp()) in VisitIncrementDecrementOperator()
DBugReporterVisitors.cpp3254 if (Ty->isBooleanType()) in printValue()
3259 if (Ty->isBooleanType()) in printValue()
/openbsd/src/gnu/llvm/clang/lib/AST/Interp/
DContext.cpp80 if (T->isBooleanType()) in classify()
/openbsd/src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSMTConstraintManager.h56 if (!hasComparison && !RetTy->isBooleanType()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
143 Ty->isBooleanType() ? Solver->mkBoolean(Value.getBoolValue()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
DSMTConv.h29 if (Ty->isBooleanType()) in mkSort()
271 if (FromTy->isBooleanType()) { in fromCast()
517 if (Ty->isBooleanType()) in getZeroExpr()
/openbsd/src/gnu/llvm/clang/lib/Sema/
DSemaFixItUtils.cpp183 if (T.isBooleanType() && in getScalarZeroExpressionForType()
DSemaCast.cpp1345 if (DestType->isBooleanType()) { in TryStaticCast()
1377 Enum->getDecl()->getIntegerType()->isBooleanType() in TryStaticCast()
2169 && !SrcType->isBooleanType() in checkIntToPointerCast()
2426 Self.getLangOpts().MicrosoftExt && !DestType->isBooleanType(); in TryReinterpretCast()
2844 (SrcType->isBooleanType() == DestType->isBooleanType()) && in DiagnoseBadFunctionCast()
3012 if (!DestType->isVoidType() && !DestType->isBooleanType() && in CheckCStyleCast()
3116 !DestType->isBooleanType()) { in CheckCStyleCast()
DSemaStmtAsm.cpp696 (OutTy->isBooleanType() ? CK_IntegralToBoolean : CK_IntegralCast); in ActOnGCCAsmStmt()
DSemaCoroutine.cpp447 (!RetType->isBooleanType() && !RetType->isVoidType())) { in buildCoawaitCalls()
DSemaOverload.cpp235 if (getToType(1)->isBooleanType() && in isPointerConversionToBool()
1841 if (!ToType->isBooleanType()) in IsStandardConversion()
1955 } else if (ToType->isBooleanType() && in IsStandardConversion()
2182 if (Context.isPromotableIntegerType(FromType) && !FromType->isBooleanType() && in IsIntegralPromotion()
2322 if (FromType->isBooleanType() && To->getKind() == BuiltinType::Int) { in IsIntegralPromotion()
5734 SCS.getToType(2)->isBooleanType(); in CheckConvertedConstantConversions()
13919 !FnDecl->getReturnType()->isBooleanType()) { in CreateOverloadedBinOp()
DSemaChecking.cpp296 return Ty->isIntegerType() && !Ty->isEnumeralType() && !Ty->isBooleanType(); in SemaBuiltinAlignment()
13020 !OtherT->isBooleanType() && Other->isKnownToHaveBooleanValue(); in CheckTautologicalComparison()
13266 if (BitfieldType->isBooleanType()) in AnalyzeBitFieldAssignment()
13981 if (S.SourceMgr.isInSystemMacro(CC) || Target->isBooleanType()) in CheckImplicitConversion()
14071 if (Target->isBooleanType() && isa<CallExpr>(E)) { in CheckImplicitConversion()
14080 InnerE->getType()->isBooleanType()) { in CheckImplicitConversion()
14207 if (Target->isBooleanType()) in CheckImplicitConversion()
14380 if (T->isBooleanType()) in CheckConditionalOperator()
14454 << OrigE->getSourceRange() << T->isBooleanType() in AnalyzeImplicitConversions()
/openbsd/src/gnu/llvm/clang/lib/CodeGen/
DCGExprScalar.cpp1058 assert(!DstType->isBooleanType() && "we should not get here with booleans."); in EmitIntegerTruncationCheck()
1256 if (SrcElementType->isBooleanType() && Opts.TreatBooleanAsSigned) { in EmitScalarCast()
1304 if (DstType->isBooleanType()) in EmitScalarConversion()
1340 if (DstType->isBooleanType()) in EmitScalarConversion()
1548 if (DstTy->isBooleanType()) { in EmitComplexToScalarConversion()
1728 if (DstEltType->isBooleanType()) { in VisitConvertVectorExpr()
2335 assert(!DestTy->isBooleanType() && "bool should use PointerToBool"); in VisitCastExpr()
2373 assert(DestTy->isBooleanType() && "Expected dest type to be boolean type"); in VisitCastExpr()
2548 if (isInc && type->isBooleanType()) { in EmitScalarPrePostIncDec()
2564 if (!type->isBooleanType() && type->isIntegerType() && in EmitScalarPrePostIncDec()
[all …]
/openbsd/src/gnu/llvm/clang/include/clang/AST/
DCanonicalType.h273 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isBooleanType)
DType.h2109 bool isBooleanType() const;
3576 (T->isRealType() && !T->isBooleanType() && !T->isEnumeralType());
7007 return cast<ExtVectorType>(CanonicalType)->getElementType()->isBooleanType();
7307 inline bool Type::isBooleanType() const {
/openbsd/src/gnu/llvm/clang/lib/AST/
DTemplateBase.cpp80 if (T->isBooleanType()) { in printIntegral()
DASTDiagnostic.cpp1807 if (FromIntType->isBooleanType()) { in PrintAPSInt()
1851 if (IntType->isBooleanType()) { in PrintAPSInt()
DAPValue.cpp713 if (Ty->isBooleanType()) in printPretty()
/openbsd/src/gnu/llvm/clang/lib/Analysis/
DBodyFarm.cpp636 bool isBoolean = ResultTy->isBooleanType(); in create_OSAtomicCompareAndSwap()
/openbsd/src/gnu/llvm/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp1010 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression()

12