]> granicus.if.org Git - clang/commit
[analyzer] exploded-graph-rewriter: Fix escaping StringRegions.
authorArtem Dergachev <artem.dergachev@gmail.com>
Wed, 19 Jun 2019 23:33:55 +0000 (23:33 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Wed, 19 Jun 2019 23:33:55 +0000 (23:33 +0000)
commit28823bb64502587c484df3ffa707f7f562ef367f
tree997a3fe8ab99f49ff95ab5545aa64072f12fd0ce
parenta66b18785d1a55881c214db8b90d60ee348e1e51
[analyzer] exploded-graph-rewriter: Fix escaping StringRegions.

Quotes around StringRegions are now escaped and unescaped correctly,
producing valid JSON.

Additionally, add a forgotten escape for Store values.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363897 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/RegionStore.cpp
test/Analysis/exploded-graph-rewriter/escapes.c [new file with mode: 0644]
test/Analysis/exploded-graph-rewriter/lit.local.cfg
utils/analyzer/exploded-graph-rewriter.py