Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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.cpp4327 const VarDecl *InitDecl; in GetOrCreateLLVMGlobal() local
4328 const Expr *InitExpr = D->getAnyInitializer(InitDecl); in GetOrCreateLLVMGlobal()
4331 llvm::Constant *Init = emitter.tryEmitForInitializer(*InitDecl); in GetOrCreateLLVMGlobal()
4681 const VarDecl *InitDecl; in EmitGlobalVarDefinition() local
4682 const Expr *InitExpr = D->getAnyInitializer(InitDecl); in EmitGlobalVarDefinition()
4722 llvm::Constant *Initializer = emitter->tryEmitForInitializer(*InitDecl); in EmitGlobalVarDefinition()
4729 if (InitDecl->hasFlexibleArrayInit(getContext())) in EmitGlobalVarDefinition()
4747 InitDecl->getFlexibleArrayInitChars(getContext()); in EmitGlobalVarDefinition()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DElseAfterReturnCheck.cpp89 const Decl *InitDecl = InitDeclStmt->getSingleDecl(); in checkInitDeclUsageInElse() local
90 assert(isa<VarDecl>(InitDecl) && "SingleDecl must be a VarDecl"); in checkInitDeclUsageInElse()
91 return findUsage(If->getElse(), InitDecl->getID()); in checkInitDeclUsageInElse()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProTypeMemberInitCheck.cpp204 const auto *InitDecl = in computeInsertions() local
210 for (; Decl != std::end(OrderedDecls) && *Decl != InitDecl; ++Decl) { in computeInsertions()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExprCXX.cpp8398 VarDecl *InitDecl; // A decl to avoid as a correction because it is in the member in __anon07929ab71211::TransformTypos
8636 TransformTypos(Sema &SemaRef, VarDecl *InitDecl, llvm::function_ref<ExprResult(Expr *)> Filter) in TransformTypos() argument
8637 : BaseTransform(SemaRef), InitDecl(InitDecl), ExprFilter(Filter) {} in TransformTypos()
8688 if (InitDecl && TC.getFoundDecl() == InitDecl) in TransformTypoExpr()
8717 Sema::CorrectDelayedTyposInExpr(Expr *E, VarDecl *InitDecl, in CorrectDelayedTyposInExpr() argument
8727 auto Result = TransformTypos(*this, InitDecl, Filter).Transform(E); in CorrectDelayedTyposInExpr()
H A DSemaDecl.cpp3039 static void diagnoseMissingConstinit(Sema &S, const VarDecl *InitDecl, in diagnoseMissingConstinit() argument
3042 SourceLocation InsertLoc = InitDecl->getInnerLocStart(); in diagnoseMissingConstinit()
3075 S.Diag(InitDecl->getLocation(), diag::ext_constinit_missing) in diagnoseMissingConstinit()
3076 << InitDecl << FixItHint::CreateInsertion(InsertLoc, SuitableSpelling); in diagnoseMissingConstinit()
3085 S.Diag(InitDecl->getLocation(), diag::note_constinit_missing_here) in diagnoseMissingConstinit()
3119 const VarDecl *InitDecl = OldVD->getInitializingDeclaration(); in mergeDeclAttributes() local
3120 if (!InitDecl && in mergeDeclAttributes()
3122 InitDecl = NewVD; in mergeDeclAttributes()
3124 if (InitDecl == NewVD) { in mergeDeclAttributes()
3135 if (InitDecl && InitDecl != NewVD) { in mergeDeclAttributes()
[all …]
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h4444 Expr *E, VarDecl *InitDecl = nullptr,
4450 ExprResult ER, VarDecl *InitDecl = nullptr,
4456 : CorrectDelayedTyposInExpr(ER.get(), InitDecl,