Fangrui Song
27ed1c5bb8
[YAMLIO] Remove trailing spaces when outputting maps
...
llvm::yaml::Output::paddedKey unconditionally outputs spaces, which
are superfluous if the value to be dumped is a sequence or map.
Change `bool NeedsNewLine` to `StringRef Padding` so that it can be
overridden to `\n` if the value is a sequence or map.
An empty map/sequence is special. It is printed as `{}` or `[]` without
a newline, while a non-empty map/sequence follows a newline. To handle
this distinction, add another variable `PaddingBeforeContainer` and does
the special handling in endMapping/endSequence.
Reviewed By: grimar, jhenderson
Differential Revision: https://reviews.llvm.org/D64566
llvm-svn: 365869
2019-07-12 04:51:31 +00:00
..
2019-07-11 10:17:59 +00:00
2019-07-11 10:17:59 +00:00
2019-05-13 10:10:24 +00:00
2019-01-19 08:50:56 +00:00
2019-07-05 16:05:17 +00:00
2019-06-15 10:24:47 +00:00
2019-07-02 18:28:13 +00:00
2019-01-19 08:50:56 +00:00
2019-06-14 13:45:21 +00:00
2019-05-30 12:57:04 +00:00
2019-06-07 12:42:54 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-17 15:38:27 +00:00
2019-01-19 08:50:56 +00:00
2019-04-17 15:38:27 +00:00
2019-01-19 08:50:56 +00:00
2019-06-15 10:09:59 +00:00
2019-01-19 08:50:56 +00:00
2019-04-21 06:17:40 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-08 12:31:12 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-07-11 08:54:28 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-08 12:31:12 +00:00
2019-01-19 08:50:56 +00:00
2019-06-24 23:45:18 +00:00
2019-01-19 08:50:56 +00:00
2018-10-23 21:51:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-27 15:33:22 +00:00
2019-01-19 08:50:56 +00:00
2019-07-03 09:57:59 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-07-10 12:49:28 +00:00
2019-07-10 00:34:13 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-06-11 00:05:36 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 10:56:40 +00:00
2019-01-19 08:50:56 +00:00
2019-04-25 12:51:42 +00:00
2019-04-12 18:18:08 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2018-09-05 00:08:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2018-05-01 15:54:18 +00:00
2019-05-20 20:53:05 +00:00
2019-07-10 00:34:13 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-25 11:33:30 +00:00
2019-06-11 16:42:42 +00:00
2019-01-19 08:50:56 +00:00
2019-07-03 09:57:59 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-24 02:40:20 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2018-07-26 15:31:41 +00:00
2018-07-30 19:41:25 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-15 22:07:56 +00:00
2019-02-19 18:18:31 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-06-21 05:40:31 +00:00
2019-01-19 08:50:56 +00:00
2019-04-23 14:51:27 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-07-09 18:10:06 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-04-25 12:51:42 +00:00
2019-03-22 23:11:08 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-07-03 01:02:43 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2019-07-10 00:34:13 +00:00
2019-01-19 08:50:56 +00:00
2019-01-19 08:50:56 +00:00
2018-07-31 18:04:58 +00:00
2019-01-19 08:50:56 +00:00
2019-07-12 04:51:31 +00:00
2019-03-27 16:54:12 +00:00