mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
Add a default-value bool flag pretty_print to the StructuredData Dump methods.
They will dump pretty-print (indentation, extra whitepsace) by default. I'll make a change to ProcessGDBRemote soon so it stops sending JSON strings to debugserver pretty-printed; it's unnecessary extra bytes being sent between the two. llvm-svn: 276079
This commit is contained in:
1 parent
074f8d7777
commit
d9c9da536f
4 files changed
+63
-37
No files matched your search
@@ -60,7 +60,7 @@ public:
|
||||
return GetValue() && GetValue() != Py_None;
|
||||
}
|
||||
|
||||
void Dump(Stream &s) const override;
|
||||
void Dump(Stream &s, bool pretty_print = true) const override;
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(StructuredPythonObject);
|
||||
|
||||
Reference in new issue
Block a user