From e9eb13aba3f684947962af9fc2ae0bc1e59a9f85 Mon Sep 17 00:00:00 2001 From: Anna Zaks Date: Sat, 2 Feb 2013 00:30:02 +0000 Subject: [PATCH] [analyzer] Print Inline mode with -analyzer-display-progress. llvm-svn: 174244 --- .../lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp index a319530..12d5f2a 100644 --- a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp +++ b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp @@ -219,7 +219,8 @@ public: } } - void DisplayFunction(const Decl *D, AnalysisMode Mode) { + void DisplayFunction(const Decl *D, AnalysisMode Mode, + ExprEngine::InliningModes IMode) { if (!Opts->AnalyzerDisplayProgress) return; @@ -230,8 +231,18 @@ public: if (Mode == AM_Syntax) llvm::errs() << " (Syntax)"; - else if (Mode == AM_Path) - llvm::errs() << " (Path)"; + else if (Mode == AM_Path) { + llvm::errs() << " (Path, "; + switch (IMode) { + case ExprEngine::Inline_None: + llvm::errs() << " Inline_None"; + break; + case ExprEngine::Inline_All: + llvm::errs() << " Inline_All"; + break; + } + llvm::errs() << ")"; + } else assert(Mode == (AM_Syntax | AM_Path) && "Unexpected mode!"); @@ -569,7 +580,7 @@ void AnalysisConsumer::HandleCode(Decl *D, AnalysisMode Mode, if (Mode == AM_None) return; - DisplayFunction(D, Mode); + DisplayFunction(D, Mode, IMode); CFG *DeclCFG = Mgr->getCFG(D); if (DeclCFG) { unsigned CFGSize = DeclCFG->size(); -- 2.7.4