Home
last modified time | relevance | path

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

12

/freebsd-head/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
HDBoolAssignmentChecker.cpp45 static bool isBooleanType(QualType Ty) { in isBooleanType() function
46 if (Ty->isBooleanType()) // C++ or C99 in isBooleanType()
69 if (!isBooleanType(RegTy)) in checkBind()
HDConversionChecker.cpp60 if (Cast->getType()->isBooleanType()) in checkPreStmt()
HDMoveChecker.cpp501 if (Tp->isBooleanType() || Tp->isVoidType() || Tp->isVoidPointerType()) in isMoveSafeMethod()
HDSmartPtrModeling.cpp239 return CD && CD->getConversionType()->isBooleanType(); in isBoolConversionMethod()
/freebsd-head/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
HDSValBuilder.cpp671 if (CastTy->isBooleanType()) in VisitConcreteInt()
693 if (CastTy->isBooleanType()) in VisitGotoLabel()
720 if (CastTy->isBooleanType()) { in VisitMemRegionVal()
875 if (CastTy->isBooleanType()) in VisitConcreteInt()
897 if (CastTy->isBooleanType()) in VisitLocAsInteger()
959 if (!IsUnknownOriginalType && CastTy->isBooleanType()) { in VisitSymbolVal()
HDSimpleSValBuilder.cpp648 assert(resultTy->isBooleanType() || in evalBinOpNN()
650 assert(symIntExpr->getType()->isBooleanType() || in evalBinOpNN()
HDExprEngineC.cpp1115 if (U->getType()->isBooleanType() && U->isIncrementOp()) in VisitIncrementDecrementOperator()
HDBugReporterVisitors.cpp3286 if (Ty->isBooleanType()) in printValue()
3291 if (Ty->isBooleanType()) in printValue()
/freebsd-head/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
HDSMTConstraintManager.h59 if (!hasComparison && !RetTy->isBooleanType()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
146 Ty->isBooleanType() ? Solver->mkBoolean(Value.getBoolValue()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
HDSMTConv.h29 if (Ty->isBooleanType()) in mkSort()
271 if (FromTy->isBooleanType()) { in fromCast()
517 if (Ty->isBooleanType()) in getZeroExpr()
/freebsd-head/contrib/llvm-project/clang/lib/Sema/
HDSemaBoundsSafety.cpp138 if (!E->getType()->isIntegerType() || E->getType()->isBooleanType()) { in CheckCountedByAttrOnField()
HDSemaFixItUtils.cpp183 if (T.isBooleanType() && in getScalarZeroExpressionForType()
HDSemaCast.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()
HDSemaStmtAsm.cpp698 (OutTy->isBooleanType() ? CK_IntegralToBoolean : CK_IntegralCast); in ActOnGCCAsmStmt()
HDSemaChecking.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()
/freebsd-head/contrib/llvm-project/clang/lib/AST/Interp/
HDContext.cpp128 if (T->isBooleanType()) in classify()
/freebsd-head/contrib/llvm-project/clang/lib/CodeGen/
HDCGExprScalar.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-head/contrib/llvm-project/clang/include/clang/AST/
HDCanonicalType.h273 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isBooleanType)
HDType.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-head/contrib/llvm-project/clang/lib/AST/
HDTemplateBase.cpp80 if (T->isBooleanType()) { in printIntegral()
HDASTDiagnostic.cpp1830 if (FromIntType->isBooleanType()) { in PrintAPSInt()
1874 if (IntType->isBooleanType()) { in PrintAPSInt()
HDAPValue.cpp718 if (Ty->isBooleanType()) in printPretty()
/freebsd-head/contrib/llvm-project/clang/lib/Analysis/
HDBodyFarm.cpp636 bool isBoolean = ResultTy->isBooleanType(); in create_OSAtomicCompareAndSwap()
/freebsd-head/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
HDDataflowEnvironment.cpp989 if (Type->isBooleanType()) { in createValueUnlessSelfReferential()
/freebsd-head/contrib/llvm-project/clang/lib/Edit/
HDRewriteObjCFoundationAPI.cpp1007 if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType()) in rewriteToNumericBoxedExpression()

12