reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/AST/Type.h
 1950   bool isBooleanType() const;

References

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 5335   return Node.isBooleanType();
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h
   53     if (!hasComparison && !RetTy->isBooleanType())
  141           Ty->isBooleanType() ? Solver->mkBoolean(Value.getBoolValue())
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
   29     if (Ty->isBooleanType())
  271       if (FromTy->isBooleanType()) {
  489       if (Ty->isBooleanType())
tools/clang/lib/AST/APValue.cpp
  483     if (Ty->isBooleanType())
tools/clang/lib/AST/ASTContext.cpp
 9302   if (T->isBooleanType())
tools/clang/lib/AST/ASTDiagnostic.cpp
 1742       if (FromIntType->isBooleanType()) {
 1786       if (IntType->isBooleanType()) {
tools/clang/lib/AST/Expr.cpp
  138   if (E->getType()->isBooleanType()) return true;
 1856     assert(!getType()->isBooleanType() && "unheralded conversion to bool");
tools/clang/lib/AST/ExprConstant.cpp
 2375   if (DestType->isBooleanType())
 3987     if (SubobjType->isBooleanType()) {
tools/clang/lib/AST/Interp/Context.cpp
   73   if (T->isBooleanType())
tools/clang/lib/AST/ItaniumMangle.cpp
 3458   if (T->isBooleanType()) {
tools/clang/lib/AST/MicrosoftMangle.cpp
 1365     mangleIntegerLiteral(Value, E->getType()->isBooleanType());
 1480                          TA.getIntegralType()->isBooleanType());
tools/clang/lib/AST/TemplateBase.cpp
   70   if (T->isBooleanType() && !Policy.MSVCFormatting) {
tools/clang/lib/Analysis/BodyFarm.cpp
  604   bool isBoolean = ResultTy->isBooleanType();
tools/clang/lib/CodeGen/CGBuiltin.cpp
  497   unsigned Width = Type->isBooleanType() ? 1 : context.getTypeInfo(Type).Width;
tools/clang/lib/CodeGen/CGExpr.cpp
 1532   if (Ty->isBooleanType())
 1536     return ET->getDecl()->getIntegerType()->isBooleanType();
tools/clang/lib/CodeGen/CGExprScalar.cpp
  996   assert(!DstType->isBooleanType() && "we should not get here with booleans.");
 1182     if (DstType->isBooleanType())
 1217   if (DstType->isBooleanType())
 1362     if (SrcType->isBooleanType() && Opts.TreatBooleanAsSigned) {
 1510   if (DstTy->isBooleanType()) {
 1678   if (DstEltType->isBooleanType()) {
 2181     assert(!DestTy->isBooleanType() && "bool should use PointerToBool");
 2214     assert(DestTy->isBooleanType() && "Expected dest type to be boolean type");
 2363     if (isInc && type->isBooleanType()) {
 2379     if (!type->isBooleanType() && type->isIntegerType() &&
 2417   if (isInc && type->isBooleanType()) {
 2847     if (!type->isBooleanType() && type->isIntegerType() &&
tools/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
 1009       if (MK == NSAPI::NSNumberWithBool && OrigTy->isBooleanType())
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
 2654     if (SubExpr->getType()->isIntegralType(*Context) && type->isBooleanType())
 3437           type->isBooleanType()) {
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
 2866           type->isBooleanType()) {
tools/clang/lib/Sema/SemaCast.cpp
 1163       if (DestType->isBooleanType()) {
 1972       && !SrcType->isBooleanType()
 2207                               !DestType->isBooleanType();
 2562       (SrcType->isBooleanType() == DestType->isBooleanType()) &&
 2562       (SrcType->isBooleanType() == DestType->isBooleanType()) &&
tools/clang/lib/Sema/SemaChecking.cpp
10696       !OtherT->isBooleanType() && Other->isKnownToHaveBooleanValue();
10905   if (BitfieldType->isBooleanType())
10922   if (Bitfield->getType()->isBooleanType())
11632       if (S.SourceMgr.isInSystemMacro(CC) || Target->isBooleanType())
11699     if (Target->isBooleanType() && isa<CallExpr>(E)) {
11708             InnerE->getType()->isBooleanType()) {
11833   if (Target->isBooleanType())
11999   if (T->isBooleanType())
12053           << OrigE->getSourceRange() << T->isBooleanType()
tools/clang/lib/Sema/SemaCodeComplete.cpp
 2318       if (ReturnType->isBooleanType()) {
 7605         (ReturnType->isIntegerType() || ReturnType->isBooleanType())) ||
 7607                                 Property->getType()->isBooleanType())))) {
 8134        ReturnType->isBooleanType())) {
tools/clang/lib/Sema/SemaCoroutine.cpp
  453           (!RetType->isBooleanType() && !RetType->isVoidType())) {
tools/clang/lib/Sema/SemaDecl.cpp
 8347   if (PT->isBooleanType() || PT->isEventT() || PT->isReserveIDT())
15845     if (BitfieldIsOverwide && !FieldTy->isBooleanType()) {
16949                                   EltTy->isBooleanType() ? CK_IntegralToBoolean
tools/clang/lib/Sema/SemaDeclAttr.cpp
  459   return QT->isBooleanType() || QT->isIntegerType();
 2841       (ParmType->isBooleanType() ||
tools/clang/lib/Sema/SemaExpr.cpp
 3370   if (!QT->isIntegerType() || QT->isBooleanType() || QT->isCharType()) {
 6591   if (VectorTy->isExtVectorType() && SplattedExpr->getType()->isBooleanType()) {
 7684   if (E->getType()->isBooleanType())
10517   if (LHSStrippedType->isBooleanType() != RHSStrippedType->isBooleanType()) {
10517   if (LHSStrippedType->isBooleanType() != RHSStrippedType->isBooleanType()) {
11361       !LHS.get()->getType()->isBooleanType() &&
11372       if ((getLangOpts().Bool && !RHS.get()->getType()->isBooleanType() &&
12131   if (S.getLangOpts().CPlusPlus && ResType->isBooleanType()) {
tools/clang/lib/Sema/SemaExprCXX.cpp
 4017     if (ToType->isBooleanType()) {
tools/clang/lib/Sema/SemaFixItUtils.cpp
  179   if (T.isBooleanType() &&
tools/clang/lib/Sema/SemaOverload.cpp
  223   if (getToType(1)->isBooleanType() &&
 1671           if (!ToType->isBooleanType())
 1792   } else if (ToType->isBooleanType() &&
 2010   if (FromType->isPromotableIntegerType() && !FromType->isBooleanType() &&
 2149   if (FromType->isBooleanType() && To->getKind() == BuiltinType::Int) {
 5436            SCS.getToType(2)->isBooleanType();
12872             !FnDecl->getReturnType()->isBooleanType()) {
tools/clang/lib/Sema/SemaStmtAsm.cpp
  646         (OutTy->isBooleanType() ? CK_IntegralToBoolean : CK_IntegralCast);
tools/clang/lib/Sema/SemaTemplate.cpp
 6651     } else if (ParamType->isBooleanType()) {
 6680     if (ParamType->isBooleanType()) {
 7097   } else if (T->isBooleanType()) {
tools/clang/lib/Sema/SemaType.cpp
 2354       (!CurType->isBuiltinType() || CurType->isBooleanType() ||
 2415       T->isBooleanType()) {
tools/clang/lib/StaticAnalyzer/Checkers/BoolAssignmentChecker.cpp
   44   if (Ty->isBooleanType()) // C++ or C99
tools/clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp
  504     if (Tp->isBooleanType() || Tp->isVoidType() || Tp->isVoidPointerType())
tools/clang/lib/StaticAnalyzer/Checkers/SmartPtrModeling.cpp
   42   return CD && CD->getConversionType()->isBooleanType();
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
 2648     if (Ty->isBooleanType())
 2653     if (Ty->isBooleanType())
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
 1117     if (U->getType()->isBooleanType() && U->isIncrementOp())
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
  531   if (castTy->isBooleanType()) {
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
  111   if (castTy->isBooleanType()) {
  148   if (castTy->isBooleanType()) {
  701             assert(resultTy->isBooleanType() ||
  703             assert(symIntExpr->getType()->isBooleanType() ||
tools/clang/tools/extra/clang-tidy/boost/UseToStringCheck.cpp
   20          !Node.isBooleanType();
tools/clang/tools/extra/clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp
   84   if (T->isBooleanType())
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
  155         ImpCast->getSubExpr()->getType()->isBooleanType()) {
  168   return !E->getType()->isBooleanType();
tools/clang/tools/extra/clangd/ExpectedTypes.cpp
   28   if (T->isBooleanType())