Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/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.cpp2218 (hasInit() || in isThisDeclarationADefinition()
2239 if (hasInit()) in isThisDeclarationADefinition()
2335 bool VarDecl::hasInit() const { in hasInit() function in VarDecl
2344 if (!hasInit()) in getInit()
2363 if (I->hasInit()) in getInitializingDeclaration()
2759 assert(hasInit() && "Expect initializer to check for flexible array init"); in hasFlexibleArrayInit()
2774 assert(hasInit() && "Expect initializer to check for flexible array init"); in getFlexibleArrayInitChars()
H A DTextNodeDumper.cpp1798 if (D->hasInit()) { in VisitVarDecl()
1818 if (D->hasInit()) { in VisitVarDecl()
H A DODRHash.cpp307 const bool HasInit = D->hasInit(); in VisitVarDecl()
H A DJSONNodeDumper.cpp849 if (VD->hasInit()) { in VisitVarDecl()
/openbsd-src/gnu/llvm/clang/tools/clang-extdef-mapping/
H A DClangExtDefMapGen.cpp74 if (cross_tu::shouldImport(VD, Ctx) && VD->hasInit()) in handleDecl()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGCXXABI.cpp185 if (!InitDecl->hasInit()) in isEmittedWithConstantInitializer()
H A DCodeGenModule.cpp3393 cast<VarDecl>(Global)->hasInit()) { in EmitGlobal()
4379 OtherD->hasInit() && in GetOrCreateLLVMGlobal()
4478 !D->hasDefinition() && D->hasInit() && !D->hasAttr<DLLImportAttr>()) { in GetOrCreateLLVMGlobal()
H A DCGOpenMPRuntime.cpp785 DRD && (DRD->getInitializer() || !PrivateVD->hasInit()); in emitAggregateInitialization()
890 } else if (DRD && (DRD->getInitializer() || !PrivateVD->hasInit())) { in emitInitialization()
895 } else if (!DefaultInit(CGF) && PrivateVD->hasInit() && in emitInitialization()
1135 if (!IsCombiner && Out->hasInit() && in emitCombinerOrInitializer()
H A DCGOpenMPRuntimeGPU.cpp264 if (!isa<ParmVarDecl>(VarD) && VarD->hasInit()) { in VisitValueDecl()
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DASTNodeTraverser.h454 if (D->hasInit()) in VisitVarDecl()
H A DDecl.h1326 bool hasInit() const;
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaCUDA.cpp610 if (VD->isInvalidDecl() || !VD->hasInit() || !VD->hasGlobalStorage() || in checkAllowedCUDAInitializer()
H A DSemaTemplateInstantiateDecl.cpp3601 IsCorrect = IsCorrect && OldPrivParm->hasInit(); in VisitOMPDeclareReductionDecl()
5376 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
5436 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
5437 !Var->hasInit()) { in InstantiateVariableDefinition()
H A DSemaDecl.cpp3197 (NewVD->hasInit() || NewVD->isThisDeclarationADefinition())) in mergeDeclAttributes()
6932 if (VD->hasInit()) { in checkAttributesAfterMerging()
13122 if (VDecl->isStaticDataMember() && VDecl->getCanonicalDecl()->hasInit()) { in AddInitializerToDecl()
13904 !var->hasInit()) { in CheckCompleteVariableDeclaration()
13976 } else if (getLangOpts().CPlusPlus && var->hasInit()) { in CheckCompleteVariableDeclaration()
13991 if (!var->getType()->isStructureType() && var->hasInit() && in CheckCompleteVariableDeclaration()
14137 } else if (var->hasInit() && HasConstInit) { in CheckCompleteVariableDeclaration()
14506 if (DeducedDecl->hasInit()) in BuildDeclaratorGroup()
15786 Var->hasAttr<AsmLabelAttr>() && !Var->hasInit(); in ActOnFinishFunctionBody()
H A DSemaOpenMP.cpp8208 if (Var->hasInit() && !Var->getType()->isReferenceType()) { in checkAndSetInit()
19244 if (VD->getType()->isReferenceType() && VDDef && VDDef->hasInit()) { in actOnOMPReductionKindClause()
19556 if (!RHSVD->hasInit() && DeclareReductionRef.isUnset()) { in actOnOMPReductionKindClause()
22282 } else if (OmpPrivParm->hasInit()) { in ActOnOpenMPDeclareReductionInitializerEnd()
/openbsd-src/gnu/llvm/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp320 REGISTER_MATCHER(hasInit); in RegistryMaps()
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DByteCodeExprGen.cpp726 if (VD->hasLocalStorage() && VD->hasInit() && !VD->isConstexpr()) { in dereferenceVar()
/openbsd-src/gnu/llvm/clang/lib/Analysis/
H A DConsumed.cpp918 if (Var->hasInit()) { in VisitVarDecl()
/openbsd-src/gnu/llvm/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp5079 bool hasInit = (ND->getInit() != nullptr); in RewriteByRefVar() local
5082 if (hasInit) in RewriteByRefVar()
5086 hasInit = false; in RewriteByRefVar()
5126 if (!hasInit) { in RewriteByRefVar()
H A DRewriteObjC.cpp4235 bool hasInit = (ND->getInit() != nullptr); in RewriteByRefVar() local
4244 if (!hasInit) { in RewriteByRefVar()
/openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4450 AST_MATCHER_P2(InitListExpr, hasInit, unsigned, N, in AST_MATCHER_P2() argument
/openbsd-src/gnu/llvm/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp7644 assert(!var->hasInit() && "variable already initialized"); in SetIntegerInitializerForVariable()
7669 assert(!var->hasInit() && "variable already initialized"); in SetFloatingInitializerForVariable()

12