]> granicus.if.org Git - clang/commit
[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)
commitfe49899262b4bcf97fef8bb0ca73eceb8bd631e6
tree6a052a6625caec34b8b7ab667dd98cacca1424c8
parentba7166bafcac1412220299dafcf7616f8d95e225
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362000 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Stmt.h
include/clang/Basic/JsonSupport.h
lib/AST/StmtPrinter.cpp
lib/Analysis/ProgramPoint.cpp
lib/StaticAnalyzer/Core/Environment.cpp
lib/StaticAnalyzer/Core/ExprEngine.cpp