diff options
| author | Csaba Dabis <dabis.csaba98@gmail.com> | 2019-05-29 15:36:58 +0000 |
|---|---|---|
| committer | Csaba Dabis <dabis.csaba98@gmail.com> | 2019-05-29 15:36:58 +0000 |
| commit | 9ce37466043ee2f6ea8ed074f947c528ab0be37d (patch) | |
| tree | d7235f1f764206341a6c69c333b2a3b22d2005e4 /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | |
| parent | d506b0a4843f04ea5e7d36dbb595e31025b60b9a (diff) | |
| download | bcm5719-llvm-9ce37466043ee2f6ea8ed074f947c528ab0be37d.tar.gz bcm5719-llvm-9ce37466043ee2f6ea8ed074f947c528ab0be37d.zip | |
[analyzer] print() JSONify: Environment implementation
Summary: -
Reviewers: NoQ, xazax.hun, ravikandhadai, baloghadamsoftware, Szelethus
Reviewed By: NoQ
Subscribers: szepet, rnkovacs, a.sidorin, mikhail.ramalho, donat.nagy,
dkrupp
Tags: #clang
Differential Revision: https://reviews.llvm.org/D62081
llvm-svn: 361976
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index 975af474392..a57546b8909 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -558,19 +558,19 @@ static void printObjectsUnderConstructionForContext(raw_ostream &Out, } void ExprEngine::printState(raw_ostream &Out, ProgramStateRef State, - const char *NL, const char *Sep, - const LocationContext *LCtx) { + const LocationContext *LCtx, const char *NL, + unsigned int Space, bool IsDot) const { if (LCtx) { if (!State->get<ObjectsUnderConstruction>().isEmpty()) { - Out << Sep << "Objects under construction:" << NL; + Out << "Objects under construction:" << NL; - LCtx->dumpStack(Out, "", NL, Sep, [&](const LocationContext *LC) { + LCtx->printJson(Out, NL, Space, IsDot, [&](const LocationContext *LC) { printObjectsUnderConstructionForContext(Out, State, NL, LC); }); } } - getCheckerManager().runCheckersForPrintState(Out, State, NL, Sep); + getCheckerManager().runCheckersForPrintState(Out, State, NL, ""); } void ExprEngine::processEndWorklist() { |

