Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtIterator.cpp49 if (VD->hasInit()) in NextVA()
H A DDeclOpenMP.cpp190 assert(hasInit()); in getSourceRange()
H A DComputeDependence.cpp587 !Var->getFirstDecl()->hasInit()) { in computeDependence()
592 } else if (!First->hasInit()) { in computeDependence()
H A DDecl.cpp2263 (hasInit() || in isThisDeclarationADefinition()
2284 if (hasInit()) in isThisDeclarationADefinition()
2380 bool VarDecl::hasInit() const { in hasInit() function in VarDecl
2392 if (!hasInit()) in getInit()
2414 if (I->hasInit()) in getInitializingDeclaration()
2824 assert(hasInit() && "Expect initializer to check for flexible array init"); in hasFlexibleArrayInit()
2839 assert(hasInit() && "Expect initializer to check for flexible array init"); in getFlexibleArrayInitChars()
H A DDeclTemplate.cpp1426 if (hasInit()) { in getSourceRange()
1435 !hasInit() && Args) in getSourceRange()
H A DODRHash.cpp318 const bool HasInit = D->hasInit(); in VisitVarDecl()
H A DTextNodeDumper.cpp2248 if (D->hasInit()) { in VisitVarDecl()
2268 if (D->hasInit()) { in VisitVarDecl()
H A DJSONNodeDumper.cpp938 if (VD->hasInit()) { in VisitVarDecl()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXXABI.cpp192 if (!InitDecl->hasInit()) in isEmittedWithConstantInitializer()
H A DCodeGenModule.cpp3873 cast<VarDecl>(Global)->hasInit()) { in EmitGlobal()
4935 OtherD->hasInit() && in GetOrCreateLLVMGlobal()
5034 !D->hasDefinition() && D->hasInit() && !D->hasAttr<DLLImportAttr>()) { in GetOrCreateLLVMGlobal()
H A DCGOpenMPRuntimeGPU.cpp252 if (!isa<ParmVarDecl>(VarD) && VarD->hasInit()) { in VisitValueDecl()
H A DCGOpenMPRuntime.cpp761 DRD && (DRD->getInitializer() || !PrivateVD->hasInit()); in emitAggregateInitialization()
866 } else if (DRD && (DRD->getInitializer() || !PrivateVD->hasInit())) { in emitInitialization()
871 } else if (!DefaultInit(CGF) && PrivateVD->hasInit() && in emitInitialization()
1119 if (!IsCombiner && Out->hasInit() && in emitCombinerOrInitializer()
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DVisitor.cpp705 if (Var->isStaticDataMember() && Var->hasInit()) in VisitCXXRecordDecl()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp329 REGISTER_MATCHER(hasInit); in RegistryMaps()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DASTNodeTraverser.h556 if (D->hasInit()) in VisitVarDecl()
H A DDecl.h1315 bool hasInit() const;
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp668 if (VD->isInvalidDecl() || !VD->hasInit() || !VD->hasGlobalStorage() || in checkAllowedInitializer()
H A DSemaTemplateInstantiateDecl.cpp3718 IsCorrect = IsCorrect && OldPrivParm->hasInit(); in VisitOMPDeclareReductionDecl()
5475 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
5520 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
5521 !Var->hasInit()) { in InstantiateVariableDefinition()
H A DSemaDecl.cpp3106 (NewVD->hasInit() || NewVD->isThisDeclarationADefinition())) in mergeDeclAttributes()
6873 if (VD->hasInit()) { in checkAttributesAfterMerging()
13387 if (VDecl->isStaticDataMember() && VDecl->getCanonicalDecl()->hasInit()) { in AddInitializerToDecl()
14183 !var->hasInit()) { in CheckCompleteVariableDeclaration()
14256 } else if (getLangOpts().CPlusPlus && var->hasInit()) { in CheckCompleteVariableDeclaration()
14271 if (!var->getType()->isStructureType() && var->hasInit() && in CheckCompleteVariableDeclaration()
14422 Stack = var->hasInit() && HasConstInit ? &DataSegStack : &BSSSegStack; in CheckCompleteVariableDeclaration()
14792 if (DeducedDecl->hasInit()) in BuildDeclaratorGroup()
16173 Var->hasAttr<AsmLabelAttr>() && !Var->hasInit(); in ActOnFinishFunctionBody()
H A DSemaOpenMP.cpp8165 if (Var->hasInit() && !Var->getType()->isReferenceType()) { in checkAndSetInit()
18399 if (VD->getType()->isReferenceType() && VDDef && VDDef->hasInit()) { in actOnOMPReductionKindClause()
18716 if (!RHSVD->hasInit() && DeclareReductionRef.isUnset()) { in actOnOMPReductionKindClause()
21523 } else if (OmpPrivParm->hasInit()) { in ActOnOpenMPDeclareReductionInitializerEnd()
22360 TargetVarDecl->hasInit() && TargetVarDecl->hasGlobalStorage()) { in declareTargetInitializer()
H A DSemaExprCXX.cpp3555 if (VD->hasInit() && (NE = getNewExprFromInitListOrExpr(VD->getInit())) && in hasMatchingVarInit()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp343 if (VD->getType()->isRecordType() && VD->hasInit()) in VisitVarDecl()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp5076 bool hasInit = (ND->getInit() != nullptr); in RewriteByRefVar() local
5079 if (hasInit) in RewriteByRefVar()
5083 hasInit = false; in RewriteByRefVar()
5123 if (!hasInit) { in RewriteByRefVar()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4686 AST_MATCHER_P2(InitListExpr, hasInit, unsigned, N, internal::Matcher<Expr>, in AST_MATCHER_P2() argument
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp7678 assert(!var->hasInit() && "variable already initialized"); in SetIntegerInitializerForVariable()
7703 assert(!var->hasInit() && "variable already initialized"); in SetFloatingInitializerForVariable()

12