[analyzer][AST] print() JSONify: Stmt implementation
authorCsaba Dabis <dabis.csaba98@gmail.com>
Wed, 29 May 2019 18:17:18 +0000 (18:17 +0000)
committerCsaba Dabis <dabis.csaba98@gmail.com>
Wed, 29 May 2019 18:17:18 +0000 (18:17 +0000)
commit9ee26c8d5f049f0f5fc99944a75e4900d4ae3110
tree68704c4dc235dc3d494aa74c157507fb115c56d0
parent03e1a82f52d219225c22f14ac73966bb97d4fd0d
[analyzer][AST] print() JSONify: Stmt implementation

Summary:
This patch also adds a function called `JsonFormat()` which:
- Flattens the string so removes the new-lines.
- Escapes double quotes.

Reviewers: NoQ, xazax.hun, ravikandhadai, baloghadamsoftware, Szelethus

Reviewed By: NoQ

Subscribers: cfe-commits, szepet, rnkovacs, a.sidorin, mikhail.ramalho,
             donat.nagy, dkrupp

Tags: #clang

Differential Revision: https://reviews.llvm.org/D62494

llvm-svn: 362000
clang/include/clang/AST/Stmt.h
clang/include/clang/Basic/JsonSupport.h
clang/lib/AST/StmtPrinter.cpp
clang/lib/Analysis/ProgramPoint.cpp
clang/lib/StaticAnalyzer/Core/Environment.cpp
clang/lib/StaticAnalyzer/Core/ExprEngine.cpp