Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXXABI.cpp187 const VarDecl *InitDecl = VD->getInitializingDeclaration(); in isEmittedWithConstantInitializer() local
188 if (!InitDecl) in isEmittedWithConstantInitializer()
192 if (!InitDecl->hasInit()) in isEmittedWithConstantInitializer()
198 return !mayNeedDestruction(VD) && InitDecl->evaluateValue(); in isEmittedWithConstantInitializer()
205 return InitDecl->hasConstantInitialization(); in isEmittedWithConstantInitializer()
H A DCodeGenModule.cpp5039 const VarDecl *InitDecl; in GetOrCreateLLVMGlobal() local
5040 const Expr *InitExpr = D->getAnyInitializer(InitDecl); in GetOrCreateLLVMGlobal()
5043 llvm::Constant *Init = emitter.tryEmitForInitializer(*InitDecl); in GetOrCreateLLVMGlobal()
5424 const VarDecl *InitDecl; in EmitGlobalVarDefinition() local
5425 const Expr *InitExpr = D->getAnyInitializer(InitDecl); in EmitGlobalVarDefinition()
5465 llvm::Constant *Initializer = emitter->tryEmitForInitializer(*InitDecl); in EmitGlobalVarDefinition()
5472 if (InitDecl->hasFlexibleArrayInit(getContext())) in EmitGlobalVarDefinition()
5492 InitDecl->getFlexibleArrayInitChars(getContext()); in EmitGlobalVarDefinition()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprCXX.cpp8706 VarDecl *InitDecl; // A decl to avoid as a correction because it is in the member in __anon88ca3d871611::TransformTypos
8944 TransformTypos(Sema &SemaRef, VarDecl *InitDecl, llvm::function_ref<ExprResult(Expr *)> Filter) in TransformTypos() argument
8945 : BaseTransform(SemaRef), InitDecl(InitDecl), ExprFilter(Filter) {} in TransformTypos()
8996 if (InitDecl && TC.getFoundDecl() == InitDecl) in TransformTypoExpr()
9025 Sema::CorrectDelayedTyposInExpr(Expr *E, VarDecl *InitDecl, in CorrectDelayedTyposInExpr() argument
9035 auto Result = TransformTypos(*this, InitDecl, Filter).Transform(E); in CorrectDelayedTyposInExpr()
H A DSemaDecl.cpp3025 static void diagnoseMissingConstinit(Sema &S, const VarDecl *InitDecl, in diagnoseMissingConstinit() argument
3028 SourceLocation InsertLoc = InitDecl->getInnerLocStart(); in diagnoseMissingConstinit()
3061 S.Diag(InitDecl->getLocation(), diag::ext_constinit_missing) in diagnoseMissingConstinit()
3062 << InitDecl << FixItHint::CreateInsertion(InsertLoc, SuitableSpelling); in diagnoseMissingConstinit()
3071 S.Diag(InitDecl->getLocation(), diag::note_constinit_missing_here) in diagnoseMissingConstinit()
3104 const VarDecl *InitDecl = OldVD->getInitializingDeclaration(); in mergeDeclAttributes() local
3105 if (!InitDecl && in mergeDeclAttributes()
3107 InitDecl = NewVD; in mergeDeclAttributes()
3109 if (InitDecl == NewVD) { in mergeDeclAttributes()
3120 if (InitDecl && InitDecl != NewVD) { in mergeDeclAttributes()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h8452 Expr *E, VarDecl *InitDecl = nullptr,
8458 ExprResult ER, VarDecl *InitDecl = nullptr,
8464 : CorrectDelayedTyposInExpr(ER.get(), InitDecl,