Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DBoolAssignmentChecker.cpp47 static bool isBooleanType(QualType Ty) { in isBooleanType() function
48 if (Ty->isBooleanType()) // C++ or C99 in isBooleanType()
71 if (!isBooleanType(valTy)) in checkBind()
H A DConversionChecker.cpp60 if (Cast->getType()->isBooleanType()) in checkPreStmt()
H A DMoveChecker.cpp499 if (Tp->isBooleanType() || Tp->isVoidType() || Tp->isVoidPointerType()) in isMoveSafeMethod()
H A DSmartPtrModeling.cpp238 return CD && CD->getConversionType()->isBooleanType(); in isBoolConversionMethod()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/boost/
H A DUseToStringCheck.cpp20 !Node.isBooleanType(); in AST_MATCHER()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DSValBuilder.cpp664 if (CastTy->isBooleanType()) in VisitLocConcreteInt()
686 if (CastTy->isBooleanType()) in VisitLocGotoLabel()
713 if (CastTy->isBooleanType()) { in VisitLocMemRegionVal()
868 if (CastTy->isBooleanType()) in VisitNonLocConcreteInt()
890 if (CastTy->isBooleanType()) in VisitNonLocLocAsInteger()
952 if (!IsUnknownOriginalType && CastTy->isBooleanType()) { in VisitNonLocSymbolVal()
H A DSimpleSValBuilder.cpp620 assert(resultTy->isBooleanType() || in evalBinOpNN()
622 assert(symIntExpr->getType()->isBooleanType() || in evalBinOpNN()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DInitVariablesCheck.cpp87 else if (TypePtr->isBooleanType()) in check()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DExpectedTypes.cpp27 if (T->isBooleanType()) in toEquivClass()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DContext.cpp67 if (T->isBooleanType()) in classify()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/
H A DMultiwayPathsCoveredCheck.cpp84 if (T->isBooleanType()) in getNumberOfPossibleValues()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConstraintManager.h55 if (!hasComparison && !RetTy->isBooleanType()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
142 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()
515 if (Ty->isBooleanType()) in getZeroExpr()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DSimplifyBooleanExprCheck.cpp124 ImpCast->getSubExpr()->getType()->isBooleanType()) { in needsStaticCast()
137 return !E->getType()->isBooleanType(); in needsStaticCast()
523 if (!BO->getType()->isBooleanType()) in nestedDemorgan()
559 !BinaryOp->getType()->isBooleanType()) in TraverseUnaryOperator()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaFixItUtils.cpp179 if (T.isBooleanType() && in getScalarZeroExpressionForType()
H A DSemaCast.cpp1329 if (DestType->isBooleanType()) { in TryStaticCast()
1361 Enum->getDecl()->getIntegerType()->isBooleanType() in TryStaticCast()
2153 && !SrcType->isBooleanType() in checkIntToPointerCast()
2410 Self.getLangOpts().MicrosoftExt && !DestType->isBooleanType(); in TryReinterpretCast()
2828 (SrcType->isBooleanType() == DestType->isBooleanType()) && in DiagnoseBadFunctionCast()
3069 !DestType->isBooleanType()) { in CheckCStyleCast()
H A DSemaStmtAsm.cpp690 (OutTy->isBooleanType() ? CK_IntegralToBoolean : CK_IntegralCast); in ActOnGCCAsmStmt()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprScalar.cpp1029 assert(!DstType->isBooleanType() && "we should not get here with booleans."); in EmitIntegerTruncationCheck()
1227 if (SrcElementType->isBooleanType() && Opts.TreatBooleanAsSigned) { in EmitScalarCast()
1275 if (DstType->isBooleanType()) in EmitScalarConversion()
1311 if (DstType->isBooleanType()) in EmitScalarConversion()
1519 if (DstTy->isBooleanType()) { in EmitComplexToScalarConversion()
1706 if (DstEltType->isBooleanType()) { in VisitConvertVectorExpr()
2312 assert(!DestTy->isBooleanType() && "bool should use PointerToBool"); in VisitCastExpr()
2525 if (isInc && type->isBooleanType()) { in EmitScalarPrePostIncDec()
2541 if (!type->isBooleanType() && type->isIntegerType() && in EmitScalarPrePostIncDec()
2580 if (isInc && type->isBooleanType()) { in EmitScalarPrePostIncDec()
[all …]
/llvm-project-15.0.7/clang/include/clang/AST/
H A DCanonicalType.h273 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isBooleanType)
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp447 if (Type->isBooleanType()) { in createValueUnlessSelfReferential()
/llvm-project-15.0.7/clang/lib/AST/
H A DTemplateBase.cpp80 if (T->isBooleanType()) { in printIntegral()
H A DASTDiagnostic.cpp1792 if (FromIntType->isBooleanType()) { in PrintAPSInt()
1836 if (IntType->isBooleanType()) { in PrintAPSInt()
H A DAPValue.cpp713 if (Ty->isBooleanType()) in printPretty()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DBodyFarm.cpp635 bool isBoolean = ResultTy->isBooleanType(); in create_OSAtomicCompareAndSwap()
/llvm-project-15.0.7/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp1009 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression()

12