Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtIterator.cpp48 if (VD->hasInit()) in NextVA()
H A DDeclOpenMP.cpp190 assert(hasInit()); in getSourceRange()
H A DDecl.cpp2280 (hasInit() || in isThisDeclarationADefinition()
2301 if (hasInit()) in isThisDeclarationADefinition()
2397 bool VarDecl::hasInit() const { in hasInit() function in VarDecl
2409 if (!hasInit()) in getInit()
2431 if (I->hasInit()) in getInitializingDeclaration()
2444 if (!hasInit()) in hasInitWithSideEffects()
2862 assert(hasInit() && "Expect initializer to check for flexible array init"); in hasFlexibleArrayInit()
2877 assert(hasInit() && "Expect initializer to check for flexible array init"); in getFlexibleArrayInitChars()
H A DComputeDependence.cpp589 !Var->getFirstDecl()->hasInit()) { in computeDependence()
594 } else if (!First->hasInit()) { in computeDependence()
H A DDeclTemplate.cpp1474 if (hasInit()) { in getSourceRange()
1483 !hasInit() && Args) in getSourceRange()
H A DODRHash.cpp337 const bool HasInit = D->hasInit(); in VisitVarDecl()
H A DTextNodeDumper.cpp2407 if (D->hasInit()) { in VisitVarDecl()
2427 if (D->hasInit()) { in VisitVarDecl()
H A DJSONNodeDumper.cpp940 if (VD->hasInit()) { in VisitVarDecl()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXXABI.cpp190 if (!InitDecl->hasInit()) in isEmittedWithConstantInitializer()
H A DCGOpenMPRuntimeGPU.cpp253 if (!isa<ParmVarDecl>(VarD) && VarD->hasInit()) { in VisitValueDecl()
H A DCodeGenModule.cpp4133 cast<VarDecl>(Global)->hasInit()) { in EmitGlobal()
5216 OtherD->hasInit() && in GetOrCreateLLVMGlobal()
5315 !D->hasDefinition() && D->hasInit() && !D->hasAttr<DLLImportAttr>()) { in GetOrCreateLLVMGlobal()
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DVisitor.cpp704 if (Var->isStaticDataMember() && Var->hasInit()) in VisitCXXRecordDecl()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp332 REGISTER_MATCHER(hasInit); in RegistryMaps()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTNodeTraverser.h586 if (D->hasInit()) in VisitVarDecl()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp693 if (VD->isInvalidDecl() || !VD->hasInit() || !VD->hasGlobalStorage() || in checkAllowedInitializer()
H A DSemaTemplateInstantiateDecl.cpp4263 IsCorrect = IsCorrect && OldPrivParm->hasInit(); in VisitOMPDeclareReductionDecl()
6154 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
6199 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
6200 !Var->hasInit()) { in InstantiateVariableDefinition()
H A DSemaDecl.cpp3162 (NewVD->hasInit() || NewVD->isThisDeclarationADefinition())) in mergeDeclAttributes()
4772 if (Old->getStorageClass() != SC_Extern || Old->hasInit()) { in MergeVarDecl()
6994 if (VD->hasInit()) { in checkAliasAttr()
13738 if (VDecl->isStaticDataMember() && VDecl->getCanonicalDecl()->hasInit()) { in AddInitializerToDecl()
14544 !var->hasInit()) { in CheckCompleteVariableDeclaration()
14621 } else if (getLangOpts().CPlusPlus && var->hasInit()) { in CheckCompleteVariableDeclaration()
14636 if (!var->getType()->isStructureType() && var->hasInit() && in CheckCompleteVariableDeclaration()
14805 Stack = var->hasInit() && HasConstInit ? &DataSegStack : &BSSSegStack; in CheckCompleteVariableDeclaration()
15180 if (DeducedDecl->hasInit()) in BuildDeclaratorGroup()
16652 Var->hasAttr<AsmLabelAttr>() && !Var->hasInit(); in ActOnFinishFunctionBody()
H A DSemaOpenACC.cpp1234 !cast<VarDecl>(InitVar)->hasInit()) in checkForInit()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp342 if (VD->getType()->isRecordType() && VD->hasInit()) in VisitVarDecl()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DConsumed.cpp911 if (Var->hasInit()) { in VisitVarDecl()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp5060 bool hasInit = (ND->getInit() != nullptr); in RewriteByRefVar() local
5063 if (hasInit) in RewriteByRefVar()
5067 hasInit = false; in RewriteByRefVar()
5107 if (!hasInit) { in RewriteByRefVar()
H A DRewriteObjC.cpp4226 bool hasInit = (ND->getInit() != nullptr); in RewriteByRefVar() local
4235 if (!hasInit) { in RewriteByRefVar()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenModule.cpp615 !d->hasDefinition() && d->hasInit() && !d->hasAttr<DLLImportAttr>()) in getOrCreateCIRGlobal()
H A DCIRGenExpr.cpp311 if (vd->hasInit()) in emitStoreOfScalar()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4779 AST_MATCHER_P2(InitListExpr, hasInit, unsigned, N, internal::Matcher<Expr>, in AST_MATCHER_P2() argument

12