diff options
author | George Karpenkov <ekarpenkov@apple.com> | 2017-10-25 21:49:41 +0000 |
---|---|---|
committer | George Karpenkov <ekarpenkov@apple.com> | 2017-10-25 21:49:41 +0000 |
commit | a535f1e292c1266239723115754e4060d25f2ffb (patch) | |
tree | 72cbdb81d5005676ff0083942ae5a88e39aaa916 | |
parent | ae2ecba319e91dbefe5096943ca96afe4d7572a7 (diff) |
[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
-rw-r--r-- | include/clang/Analysis/AnalysisDeclContext.h | 2 | ||||
-rw-r--r-- | lib/Analysis/AnalysisDeclContext.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
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<BodyFarm> BdyFrm; + std::unique_ptr<BodyFarm> 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<BodyFarm>(ASTCtx, Injector.get()); - return BdyFrm.get(); + if (!FunctionBodyFarm) + FunctionBodyFarm = llvm::make_unique<BodyFarm>(ASTCtx, Injector.get()); + return FunctionBodyFarm.get(); } const StackFrameContext * |