Home
last modified time | relevance | path

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

123

/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DAliasing.cpp30 if (LeftVar->hasInit() && LeftVar->getType()->isReferenceType()) { in isPtrOrReferenceForVar()
/external/llvm-project/clang-tools-extra/clang-tidy/llvm/
DTwineLocalCheck.cpp34 if (VD->hasInit()) { in check()
/external/clang/lib/AST/
DStmtIterator.cpp45 if (VD->hasInit()) in NextVA()
DDecl.cpp1929 (hasInit() || in isThisDeclarationADefinition()
1951 if (hasInit()) in isThisDeclarationADefinition()
2040 bool VarDecl::hasInit() const { in hasInit() function in VarDecl
2049 if (!hasInit()) in getInit()
/external/llvm-project/clang/lib/AST/
DStmtIterator.cpp49 if (VD->hasInit()) in NextVA()
DDeclOpenMP.cpp188 assert(hasInit()); in getSourceRange()
DDecl.cpp2125 (hasInit() || in isThisDeclarationADefinition()
2147 if (hasInit()) in isThisDeclarationADefinition()
2239 bool VarDecl::hasInit() const { in hasInit() function in VarDecl
2248 if (!hasInit()) in getInit()
2267 if (I->hasInit()) in getInitializingDeclaration()
DTextNodeDumper.cpp1691 if (D->hasInit()) { in VisitVarDecl()
1709 if (D->hasInit()) { in VisitVarDecl()
DODRHash.cpp297 const bool HasInit = D->hasInit(); in VisitVarDecl()
/external/llvm-project/clang/tools/clang-extdef-mapping/
DClangExtDefMapGen.cpp67 if (cross_tu::containsConst(VD, Ctx) && VD->hasInit()) in handleDecl()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DIsolateDeclarationCheck.cpp188 CurrentDecl->hasInit() in declRanges()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DRedundantVoidArgCheck.cpp203 if (Var->hasInit()) { in processVarDecl()
DUseDefaultMemberInitCheck.cpp211 allOf(initCountIs(1), hasInit(0, ignoringImplicit(InitBase))), in registerMatchers()
DLoopConvertUtils.cpp354 if (!VDecl->hasInit()) in isAliasDecl()
/external/clang/include/clang/Sema/
DSemaInternal.h77 !(Var->isStaticDataMember() && Var->hasInit())) { in MarkVarDeclODRUsed()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DDurationRewriter.cpp177 hasInit(0, ignoringParenImpCasts(ZeroMatcher))))) in IsLiteralZero()
/external/llvm-project/clang/lib/AST/Interp/
DByteCodeExprGen.cpp382 if (VD->hasLocalStorage() && VD->hasInit() && !VD->isConstexpr()) { in dereferenceVar()
/external/llvm-project/clang/include/clang/AST/
DASTNodeTraverser.h429 if (D->hasInit()) in VisitVarDecl()
/external/llvm-project/clang/lib/Sema/
DSemaCUDA.cpp515 if (VD->isInvalidDecl() || !VD->hasInit() || !VD->hasGlobalStorage()) in checkAllowedCUDAInitializer()
DSemaTemplateInstantiateDecl.cpp3347 IsCorrect = IsCorrect && OldPrivParm->hasInit(); in VisitOMPDeclareReductionDecl()
5146 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
5206 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
5207 !Var->hasInit()) { in InstantiateVariableDefinition()
/external/llvm-project/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp296 REGISTER_MATCHER(hasInit); in RegistryMaps()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp3484 EXPECT_TRUE(matches("int x{0};", initListExpr(hasInit(0, expr())))); in TEST_P()
3485 EXPECT_FALSE(matches("int x{0};", initListExpr(hasInit(1, expr())))); in TEST_P()
3486 EXPECT_FALSE(matches("int x;", initListExpr(hasInit(0, expr())))); in TEST_P()
/external/llvm-project/clang/lib/Analysis/
DConsumed.cpp918 if (Var->hasInit()) { in VisitVarDecl()
/external/clang/lib/Analysis/
DConsumed.cpp934 if (Var->hasInit()) { in VisitVarDecl()
/external/llvm-project/clang/lib/Frontend/Rewrite/
DRewriteModernObjC.cpp5091 bool hasInit = (ND->getInit() != nullptr); in RewriteByRefVar() local
5094 if (hasInit) in RewriteByRefVar()
5098 hasInit = false; in RewriteByRefVar()
5138 if (!hasInit) { in RewriteByRefVar()

123