Home
last modified time | relevance | path

Searched refs:InitDecl (Results 1 – 5 of 5) sorted by relevance

/openbsd/gnu/llvm/clang/lib/CodeGen/
H A DCGCXXABI.cpp180 const VarDecl *InitDecl = VD->getInitializingDeclaration(); in isEmittedWithConstantInitializer() local
181 if (!InitDecl) in isEmittedWithConstantInitializer()
185 if (!InitDecl->hasInit()) in isEmittedWithConstantInitializer()
191 return !mayNeedDestruction(VD) && InitDecl->evaluateValue(); in isEmittedWithConstantInitializer()
198 return InitDecl->hasConstantInitialization(); in isEmittedWithConstantInitializer()
H A DCodeGenModule.cpp4483 const VarDecl *InitDecl; in GetOrCreateLLVMGlobal() local
4484 const Expr *InitExpr = D->getAnyInitializer(InitDecl); in GetOrCreateLLVMGlobal()
4487 llvm::Constant *Init = emitter.tryEmitForInitializer(*InitDecl); in GetOrCreateLLVMGlobal()
4843 const VarDecl *InitDecl; in EmitGlobalVarDefinition() local
4844 const Expr *InitExpr = D->getAnyInitializer(InitDecl); in EmitGlobalVarDefinition()
4884 llvm::Constant *Initializer = emitter->tryEmitForInitializer(*InitDecl); in EmitGlobalVarDefinition()
4891 if (InitDecl->hasFlexibleArrayInit(getContext())) in EmitGlobalVarDefinition()
4911 InitDecl->getFlexibleArrayInitChars(getContext()); in EmitGlobalVarDefinition()
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaExprCXX.cpp8422 VarDecl *InitDecl; // A decl to avoid as a correction because it is in the member in __anon62a048341211::TransformTypos
8660 TransformTypos(Sema &SemaRef, VarDecl *InitDecl, llvm::function_ref<ExprResult(Expr *)> Filter) in TransformTypos() argument
8661 : BaseTransform(SemaRef), InitDecl(InitDecl), ExprFilter(Filter) {} in TransformTypos()
8712 if (InitDecl && TC.getFoundDecl() == InitDecl) in TransformTypoExpr()
8741 Sema::CorrectDelayedTyposInExpr(Expr *E, VarDecl *InitDecl, in CorrectDelayedTyposInExpr() argument
8751 auto Result = TransformTypos(*this, InitDecl, Filter).Transform(E); in CorrectDelayedTyposInExpr()
H A DSemaDecl.cpp3115 static void diagnoseMissingConstinit(Sema &S, const VarDecl *InitDecl, in diagnoseMissingConstinit() argument
3118 SourceLocation InsertLoc = InitDecl->getInnerLocStart(); in diagnoseMissingConstinit()
3151 S.Diag(InitDecl->getLocation(), diag::ext_constinit_missing) in diagnoseMissingConstinit()
3152 << InitDecl << FixItHint::CreateInsertion(InsertLoc, SuitableSpelling); in diagnoseMissingConstinit()
3161 S.Diag(InitDecl->getLocation(), diag::note_constinit_missing_here) in diagnoseMissingConstinit()
3195 const VarDecl *InitDecl = OldVD->getInitializingDeclaration(); in mergeDeclAttributes() local
3196 if (!InitDecl && in mergeDeclAttributes()
3198 InitDecl = NewVD; in mergeDeclAttributes()
3200 if (InitDecl == NewVD) { in mergeDeclAttributes()
3211 if (InitDecl && InitDecl != NewVD) { in mergeDeclAttributes()
[all …]
/openbsd/gnu/llvm/clang/include/clang/Sema/
H A DSema.h4564 Expr *E, VarDecl *InitDecl = nullptr,
4570 ExprResult ER, VarDecl *InitDecl = nullptr,
4576 : CorrectDelayedTyposInExpr(ER.get(), InitDecl,