Home
last modified time | relevance | path

Searched refs:hasInit (Results 1 – 25 of 41) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DTwineLocalCheck.cpp34 if (VD->hasInit()) { in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DAliasing.cpp42 if (LeftVar->hasInit() && LeftVar->getType()->isReferenceType()) { in isPtrOrReferenceForVar()
/llvm-project-15.0.7/clang/lib/AST/
H A DStmtIterator.cpp49 if (VD->hasInit()) in NextVA()
H A DDeclOpenMP.cpp188 assert(hasInit()); in getSourceRange()
H A DComputeDependence.cpp541 !Var->getFirstDecl()->hasInit()) { in computeDependence()
546 } else if (!First->hasInit()) { in computeDependence()
H A DDecl.cpp2189 (hasInit() || in isThisDeclarationADefinition()
2210 if (hasInit()) in isThisDeclarationADefinition()
2306 bool VarDecl::hasInit() const { in hasInit() function in VarDecl
2315 if (!hasInit()) in getInit()
2334 if (I->hasInit()) in getInitializingDeclaration()
2730 assert(hasInit() && "Expect initializer to check for flexible array init"); in hasFlexibleArrayInit()
2745 assert(hasInit() && "Expect initializer to check for flexible array init"); in getFlexibleArrayInitChars()
H A DTextNodeDumper.cpp1778 if (D->hasInit()) { in VisitVarDecl()
1796 if (D->hasInit()) { in VisitVarDecl()
H A DODRHash.cpp298 const bool HasInit = D->hasInit(); in VisitVarDecl()
/llvm-project-15.0.7/clang/tools/clang-extdef-mapping/
H A DClangExtDefMapGen.cpp73 if (cross_tu::shouldImport(VD, Ctx) && VD->hasInit()) in handleDecl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DStringviewNullptrCheck.cpp70 auto NullInitList = initListExpr(initCountIs(1), hasInit(0, NullLiteral)); in StringviewNullptrCheckImpl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DIsolateDeclarationCheck.cpp188 CurrentDecl->hasInit() in declRanges()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseDefaultMemberInitCheck.cpp210 anyOf(initListExpr(anyOf(allOf(initCountIs(1), hasInit(0, InitBase)), in registerMatchers()
H A DRedundantVoidArgCheck.cpp248 if (Var->hasInit()) { in processVarDecl()
H A DLoopConvertUtils.cpp360 if (!VDecl->hasInit()) in isAliasDecl()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DDurationRewriter.cpp177 hasInit(0, ignoringParenImpCasts(ZeroMatcher))))) in isLiteralZero()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DUnnecessaryCopyInitialization.cpp150 if (!InitializingVar.isLocalVarDecl() || !InitializingVar.hasInit()) { in isInitializingVariableImmutable()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCXXABI.cpp185 if (!InitDecl->hasInit()) in isEmittedWithConstantInitializer()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DByteCodeExprGen.cpp382 if (VD->hasLocalStorage() && VD->hasInit() && !VD->isConstexpr()) { in dereferenceVar()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTNodeTraverser.h457 if (D->hasInit()) in VisitVarDecl()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCUDA.cpp612 if (VD->isInvalidDecl() || !VD->hasInit() || !VD->hasGlobalStorage() || in checkAllowedCUDAInitializer()
H A DSemaTemplateInstantiateDecl.cpp3534 IsCorrect = IsCorrect && OldPrivParm->hasInit(); in VisitOMPDeclareReductionDecl()
5365 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
5425 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
5426 !Var->hasInit()) { in InstantiateVariableDefinition()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp320 REGISTER_MATCHER(hasInit); in RegistryMaps()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp546 varDecl(hasInitializer(initListExpr(hasInit(0, cxxDefaultInitExpr()))))); in TEST_P()
717 AST_MATCHER(CXXFoldExpr, hasInit) { return Node.getInit(); } in AST_MATCHER() argument
723 cxxFoldExpr(hasOperator(BO_Add), isLeftFold(), unless(hasInit())); in TEST_P()
724 auto Match2 = cxxFoldExpr(hasOperator(BO_Sub), isLeftFold(), hasInit()); in TEST_P()
726 cxxFoldExpr(hasOperator(BO_Mul), isRightFold(), unless(hasInit())); in TEST_P()
727 auto Match4 = cxxFoldExpr(hasOperator(BO_Div), isRightFold(), hasInit()); in TEST_P()
5731 ASSERT_TRUE(FromZ->hasInit()); in TEST_P()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp3986 EXPECT_TRUE(matches("int x{0};", initListExpr(hasInit(0, expr())))); in TEST_P()
3987 EXPECT_FALSE(matches("int x{0};", initListExpr(hasInit(1, expr())))); in TEST_P()
3988 EXPECT_FALSE(matches("int x;", initListExpr(hasInit(0, expr())))); in TEST_P()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DConsumed.cpp918 if (Var->hasInit()) { in VisitVarDecl()

12