Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXXABI.cpp177 const VarDecl *InitDecl = VD->getInitializingDeclaration(); in isEmittedWithConstantInitializer() local
178 if (!InitDecl) in isEmittedWithConstantInitializer()
182 if (!InitDecl->hasInit()) in isEmittedWithConstantInitializer()
188 return !mayNeedDestruction(VD) && InitDecl->evaluateValue(); in isEmittedWithConstantInitializer()
195 return InitDecl->hasConstantInitialization(); in isEmittedWithConstantInitializer()
H A DCodeGenModule.cpp4926 const VarDecl *InitDecl; in GetOrCreateLLVMGlobal() local
4927 const Expr *InitExpr = D->getAnyInitializer(InitDecl); in GetOrCreateLLVMGlobal()
4930 llvm::Constant *Init = emitter.tryEmitForInitializer(*InitDecl); in GetOrCreateLLVMGlobal()
5292 const VarDecl *InitDecl; in EmitGlobalVarDefinition() local
5293 const Expr *InitExpr = D->getAnyInitializer(InitDecl); in EmitGlobalVarDefinition()
5333 llvm::Constant *Initializer = emitter->tryEmitForInitializer(*InitDecl); in EmitGlobalVarDefinition()
5340 if (InitDecl->hasFlexibleArrayInit(getContext())) in EmitGlobalVarDefinition()
5360 InitDecl->getFlexibleArrayInitChars(getContext()); in EmitGlobalVarDefinition()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprCXX.cpp8484 VarDecl *InitDecl; // A decl to avoid as a correction because it is in the member in __anon0c531efd1311::TransformTypos
8722 TransformTypos(Sema &SemaRef, VarDecl *InitDecl, llvm::function_ref<ExprResult(Expr *)> Filter) in TransformTypos() argument
8723 : BaseTransform(SemaRef), InitDecl(InitDecl), ExprFilter(Filter) {} in TransformTypos()
8774 if (InitDecl && TC.getFoundDecl() == InitDecl) in TransformTypoExpr()
8803 Sema::CorrectDelayedTyposInExpr(Expr *E, VarDecl *InitDecl, in CorrectDelayedTyposInExpr() argument
8813 auto Result = TransformTypos(*this, InitDecl, Filter).Transform(E); in CorrectDelayedTyposInExpr()
H A DSemaDecl.cpp3167 static void diagnoseMissingConstinit(Sema &S, const VarDecl *InitDecl, in diagnoseMissingConstinit() argument
3170 SourceLocation InsertLoc = InitDecl->getInnerLocStart(); in diagnoseMissingConstinit()
3203 S.Diag(InitDecl->getLocation(), diag::ext_constinit_missing) in diagnoseMissingConstinit()
3204 << InitDecl << FixItHint::CreateInsertion(InsertLoc, SuitableSpelling); in diagnoseMissingConstinit()
3213 S.Diag(InitDecl->getLocation(), diag::note_constinit_missing_here) in diagnoseMissingConstinit()
3247 const VarDecl *InitDecl = OldVD->getInitializingDeclaration(); in mergeDeclAttributes() local
3248 if (!InitDecl && in mergeDeclAttributes()
3250 InitDecl = NewVD; in mergeDeclAttributes()
3252 if (InitDecl == NewVD) { in mergeDeclAttributes()
3263 if (InitDecl && InitDecl != NewVD) { in mergeDeclAttributes()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h4655 Expr *E, VarDecl *InitDecl = nullptr,
4661 ExprResult ER, VarDecl *InitDecl = nullptr,
4667 : CorrectDelayedTyposInExpr(ER.get(), InitDecl,