From: George Karpenkov Date: Wed, 25 Oct 2017 21:49:41 +0000 (+0000) Subject: [Analyzer] Give more descriptive name to BdyFrm field. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a535f1e292c1266239723115754e4060d25f2ffb;p=clang [Analyzer] Give more descriptive name to BdyFrm field. Discussion at: https://reviews.llvm.org/D39220 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316617 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/AnalysisDeclContext.h b/include/clang/Analysis/AnalysisDeclContext.h index c9762818ad..ecd99f8054 100644 --- a/include/clang/Analysis/AnalysisDeclContext.h +++ b/include/clang/Analysis/AnalysisDeclContext.h @@ -421,7 +421,7 @@ class AnalysisDeclContextManager { /// Pointer to a factory for creating and caching implementations for common /// methods during the analysis. - std::unique_ptr BdyFrm; + std::unique_ptr FunctionBodyFarm; /// Flag to indicate whether or not bodies should be synthesized /// for well-known functions. diff --git a/lib/Analysis/AnalysisDeclContext.cpp b/lib/Analysis/AnalysisDeclContext.cpp index 17749db37c..c7c720eb77 100644 --- a/lib/Analysis/AnalysisDeclContext.cpp +++ b/lib/Analysis/AnalysisDeclContext.cpp @@ -305,9 +305,9 @@ AnalysisDeclContext *AnalysisDeclContextManager::getContext(const Decl *D) { } BodyFarm *AnalysisDeclContextManager::getBodyFarm() { - if (!BdyFrm) - BdyFrm = llvm::make_unique(ASTCtx, Injector.get()); - return BdyFrm.get(); + if (!FunctionBodyFarm) + FunctionBodyFarm = llvm::make_unique(ASTCtx, Injector.get()); + return FunctionBodyFarm.get(); } const StackFrameContext *