]> granicus.if.org Git - clang/commitdiff
[Analyzer] Give more descriptive name to BdyFrm field.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Wed, 25 Oct 2017 21:49:41 +0000 (21:49 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Wed, 25 Oct 2017 21:49:41 +0000 (21:49 +0000)
Discussion at: https://reviews.llvm.org/D39220

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316617 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/AnalysisDeclContext.h
lib/Analysis/AnalysisDeclContext.cpp

index c9762818ad635012fb6e166a6f8c23d8062d1af3..ecd99f80545238c0644269de542de993e134131d 100644 (file)
@@ -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.
index 17749db37cf4f8080f07479b70c514650b07bbe4..c7c720eb77fea010711ca9e8f4614b168879bf7b 100644 (file)
@@ -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 *