Home
last modified time | relevance | path

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

12

/freebsd-13.1/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.cpp515 !Var->getFirstDecl()->hasInit()) { in computeDependence()
520 } else if (!First->hasInit()) { in computeDependence()
H A DDecl.cpp2149 (hasInit() || in isThisDeclarationADefinition()
2170 if (hasInit()) in isThisDeclarationADefinition()
2262 bool VarDecl::hasInit() const { in hasInit() function in VarDecl
2271 if (!hasInit()) in getInit()
2290 if (I->hasInit()) in getInitializingDeclaration()
H A DTextNodeDumper.cpp1745 if (D->hasInit()) { in VisitVarDecl()
1763 if (D->hasInit()) { in VisitVarDecl()
H A DODRHash.cpp297 const bool HasInit = D->hasInit(); in VisitVarDecl()
H A DJSONNodeDumper.cpp818 if (VD->hasInit()) { in VisitVarDecl()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeExprGen.cpp382 if (VD->hasLocalStorage() && VD->hasInit() && !VD->isConstexpr()) { in dereferenceVar()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DASTNodeTraverser.h454 if (D->hasInit()) in VisitVarDecl()
H A DDecl.h1282 bool hasInit() const;
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp611 if (VD->isInvalidDecl() || !VD->hasInit() || !VD->hasGlobalStorage() || in checkAllowedCUDAInitializer()
H A DSemaTemplateInstantiateDecl.cpp3472 IsCorrect = IsCorrect && OldPrivParm->hasInit(); in VisitOMPDeclareReductionDecl()
5346 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
5406 (PatternDecl = PatternDecl->getFirstDecl())->hasInit() && in InstantiateVariableDefinition()
5407 !Var->hasInit()) { in InstantiateVariableDefinition()
H A DSemaDecl.cpp2913 (NewVD->hasInit() || NewVD->isThisDeclarationADefinition())) in mergeDeclAttributes()
6479 if (VD->hasInit()) { in checkAttributesAfterMerging()
12251 if (VDecl->isStaticDataMember() && VDecl->getCanonicalDecl()->hasInit()) { in AddInitializerToDecl()
13023 !var->hasInit()) { in CheckCompleteVariableDeclaration()
13095 } else if (getLangOpts().CPlusPlus && var->hasInit()) { in CheckCompleteVariableDeclaration()
13110 if (!var->getType()->isStructureType() && var->hasInit() && in CheckCompleteVariableDeclaration()
13256 } else if (var->hasInit() && HasConstInit) { in CheckCompleteVariableDeclaration()
13618 if (DeducedDecl->hasInit()) in BuildDeclaratorGroup()
14792 Var->hasAttr<AsmLabelAttr>() && !Var->hasInit(); in ActOnFinishFunctionBody()
H A DSemaOpenMP.cpp7595 if (Var->hasInit() && !Var->getType()->isReferenceType()) { in checkAndSetInit()
16890 if (VD->getType()->isReferenceType() && VDDef && VDDef->hasInit()) { in actOnOMPReductionKindClause()
17203 if (!RHSVD->hasInit() && DeclareReductionRef.isUnset()) { in actOnOMPReductionKindClause()
19882 } else if (OmpPrivParm->hasInit()) { in ActOnOpenMPDeclareReductionInitializerEnd()
H A DSemaExpr.cpp1966 if (!S.getLangOpts().CUDA || !VD->hasInit()) in isCapturingReferenceToHostVarInCUDADeviceLambda()
5688 assert(Param->hasInit() && "default argument but no initializer?"); in CheckCXXDefaultArgExpr()
17295 !(Var->isStaticDataMember() && Var->hasInit())) { in MarkVarDeclODRUsed()
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp312 REGISTER_MATCHER(hasInit); in RegistryMaps()
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DConsumed.cpp918 if (Var->hasInit()) { in VisitVarDecl()
/freebsd-13.1/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-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp2989 cast<VarDecl>(Global)->hasInit()) { in EmitGlobal()
3861 OtherD->hasInit() && in GetOrCreateLLVMGlobal()
3960 !D->hasDefinition() && D->hasInit() && !D->hasAttr<DLLImportAttr>()) { in GetOrCreateLLVMGlobal()
H A DCGOpenMPRuntime.cpp786 DRD && (DRD->getInitializer() || !PrivateVD->hasInit()); in emitAggregateInitialization()
905 } else if (DRD && (DRD->getInitializer() || !PrivateVD->hasInit())) { in emitInitialization()
910 } else if (!DefaultInit(CGF) && PrivateVD->hasInit() && in emitInitialization()
1160 if (!IsCombiner && Out->hasInit() && in emitCombinerOrInitializer()
H A DCGOpenMPRuntimeGPU.cpp283 if (!isa<ParmVarDecl>(VarD) && VarD->hasInit()) { in VisitValueDecl()
H A DItaniumCXXABI.cpp361 if (!InitDecl->hasInit()) in isEmittedWithConstantInitializer()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h4366 AST_MATCHER_P2(InitListExpr, hasInit, unsigned, N, in AST_MATCHER_P2() argument
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp7483 assert(!var->hasInit() && "variable already initialized"); in SetIntegerInitializerForVariable()
7501 assert(!var->hasInit() && "variable already initialized"); in SetFloatingInitializerForVariable()

12