Changeset View
Changeset View
Standalone View
Standalone View
cfe/trunk/lib/StaticAnalyzer/Core/RegionStore.cpp
Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | public: | ||||
Store asStore() const { | Store asStore() const { | ||||
return asImmutableMap().getRootWithoutRetain(); | return asImmutableMap().getRootWithoutRetain(); | ||||
} | } | ||||
void printJson(raw_ostream &Out, const char *NL = "\n", | void printJson(raw_ostream &Out, const char *NL = "\n", | ||||
unsigned int Space = 0, bool IsDot = false) const { | unsigned int Space = 0, bool IsDot = false) const { | ||||
for (iterator I = begin(); I != end(); ++I) { | for (iterator I = begin(); I != end(); ++I) { | ||||
Indent(Out, Space, IsDot) | Indent(Out, Space, IsDot) | ||||
<< "{ \"cluster\": \"" << I.getKey() << "\", \"items\": [" << NL; | << "{ \"cluster\": \"" << I.getKey() << "\", \"pointer\": \"" | ||||
<< (const void *)I.getKey() << "\", \"items\": [" << NL; | |||||
++Space; | ++Space; | ||||
const ClusterBindings &CB = I.getData(); | const ClusterBindings &CB = I.getData(); | ||||
for (ClusterBindings::iterator CI = CB.begin(); CI != CB.end(); ++CI) { | for (ClusterBindings::iterator CI = CB.begin(); CI != CB.end(); ++CI) { | ||||
Indent(Out, Space, IsDot) << "{ " << CI.getKey() << ", \"value\": \"" | Indent(Out, Space, IsDot) << "{ " << CI.getKey() << ", \"value\": \"" | ||||
<< CI.getData() << "\" }"; | << CI.getData() << "\" }"; | ||||
if (std::next(CI) != CB.end()) | if (std::next(CI) != CB.end()) | ||||
Out << ','; | Out << ','; | ||||
▲ Show 20 Lines • Show All 2,421 Lines • Show Last 20 Lines |