Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DStmtIterator.cpp49 if (VD->hasInit()) in NextVA()
H A DDeclOpenMP.cpp188 assert(hasInit()); in getSourceRange()
H A DComputeDependence.cpp550 !Var->getFirstDecl()->hasInit()) { in computeDependence()
555 } else if (!First->hasInit()) { in computeDependence()
H A DDecl.cpp2278 (hasInit() || in isThisDeclarationADefinition()
2299 if (hasInit()) in isThisDeclarationADefinition()
2395 bool VarDecl::hasInit() const { in hasInit() function in VarDecl
2404 if (!hasInit()) in getInit()
2426 if (I->hasInit()) in getInitializingDeclaration()
2822 assert(hasInit() && "Expect initializer to check for flexible array init"); in hasFlexibleArrayInit()
2837 assert(hasInit() && "Expect initializer to check for flexible array init"); in getFlexibleArrayInitChars()
H A DDeclTemplate.cpp1389 if (isExplicitSpecialization() && !hasInit()) { in getSourceRange()
1443 if (isExplicitSpecialization() && !hasInit()) { in getSourceRange()
H A DTextNodeDumper.cpp1997 if (D->hasInit()) { in VisitVarDecl()
2017 if (D->hasInit()) { in VisitVarDecl()
H A DODRHash.cpp311 const bool HasInit = D->hasInit(); in VisitVarDecl()
H A DJSONNodeDumper.cpp906 if (VD->hasInit()) { in VisitVarDecl()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXXABI.cpp182 if (!InitDecl->hasInit()) in isEmittedWithConstantInitializer()
H A DCodeGenModule.cpp3831 cast<VarDecl>(Global)->hasInit()) { in EmitGlobal()
4822 OtherD->hasInit() && in GetOrCreateLLVMGlobal()
4921 !D->hasDefinition() && D->hasInit() && !D->hasAttr<DLLImportAttr>()) { in GetOrCreateLLVMGlobal()
H A DCGOpenMPRuntime.cpp759 DRD && (DRD->getInitializer() || !PrivateVD->hasInit()); in emitAggregateInitialization()
864 } else if (DRD && (DRD->getInitializer() || !PrivateVD->hasInit())) { in emitInitialization()
869 } else if (!DefaultInit(CGF) && PrivateVD->hasInit() && in emitInitialization()
1117 if (!IsCombiner && Out->hasInit() && in emitCombinerOrInitializer()
H A DCGOpenMPRuntimeGPU.cpp252 if (!isa<ParmVarDecl>(VarD) && VarD->hasInit()) { in VisitValueDecl()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DASTNodeTraverser.h465 if (D->hasInit()) in VisitVarDecl()
H A DDecl.h1351 bool hasInit() const;
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp653 if (VD->isInvalidDecl() || !VD->hasInit() || !VD->hasGlobalStorage() || in checkAllowedCUDAInitializer()
H A DSemaTemplateInstantiateDecl.cpp3666 IsCorrect = IsCorrect && OldPrivParm->hasInit(); in VisitOMPDeclareReductionDecl()
5478 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
5538 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
5539 !Var->hasInit()) { in InstantiateVariableDefinition()
H A DSemaDecl.cpp3249 (NewVD->hasInit() || NewVD->isThisDeclarationADefinition())) in mergeDeclAttributes()
7076 if (VD->hasInit()) { in checkAttributesAfterMerging()
13575 if (VDecl->isStaticDataMember() && VDecl->getCanonicalDecl()->hasInit()) { in AddInitializerToDecl()
14378 !var->hasInit()) { in CheckCompleteVariableDeclaration()
14451 } else if (getLangOpts().CPlusPlus && var->hasInit()) { in CheckCompleteVariableDeclaration()
14466 if (!var->getType()->isStructureType() && var->hasInit() && in CheckCompleteVariableDeclaration()
14613 Stack = var->hasInit() && HasConstInit ? &DataSegStack : &BSSSegStack; in CheckCompleteVariableDeclaration()
14989 if (DeducedDecl->hasInit()) in BuildDeclaratorGroup()
16378 Var->hasAttr<AsmLabelAttr>() && !Var->hasInit(); in ActOnFinishFunctionBody()
H A DSemaOpenMP.cpp8359 if (Var->hasInit() && !Var->getType()->isReferenceType()) { in checkAndSetInit()
19597 if (VD->getType()->isReferenceType() && VDDef && VDDef->hasInit()) { in actOnOMPReductionKindClause()
19914 if (!RHSVD->hasInit() && DeclareReductionRef.isUnset()) { in actOnOMPReductionKindClause()
22697 } else if (OmpPrivParm->hasInit()) { in ActOnOpenMPDeclareReductionInitializerEnd()
23517 TargetVarDecl->hasInit() && TargetVarDecl->hasGlobalStorage()) { in declareTargetInitializer()
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp329 REGISTER_MATCHER(hasInit); in RegistryMaps()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DConsumed.cpp918 if (Var->hasInit()) { in VisitVarDecl()
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp5078 bool hasInit = (ND->getInit() != nullptr); in RewriteByRefVar() local
5081 if (hasInit) in RewriteByRefVar()
5085 hasInit = false; in RewriteByRefVar()
5125 if (!hasInit) { in RewriteByRefVar()
H A DRewriteObjC.cpp4235 bool hasInit = (ND->getInit() != nullptr); in RewriteByRefVar() local
4244 if (!hasInit) { in RewriteByRefVar()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeExprGen.cpp2170 if (VD->hasLocalStorage() && VD->hasInit() && !VD->isConstexpr()) { in dereferenceVar()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4688 AST_MATCHER_P2(InitListExpr, hasInit, unsigned, N, in AST_MATCHER_P2() argument
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp7519 assert(!var->hasInit() && "variable already initialized"); in SetIntegerInitializerForVariable()
7544 assert(!var->hasInit() && "variable already initialized"); in SetFloatingInitializerForVariable()

12