[PATCH] Config file support for clang-format, part 2.
Kim Gräsman
kim.grasman at gmail.com
Sun May 12 00:45:21 PDT 2013
On Fri, May 10, 2013 at 1:57 PM, Alexander Kornienko <alexfh at google.com> wrote:
>
> ================
> Comment at: lib/Format/Format.cpp:61
> @@ +60,3 @@
> + if (Style == clang::format::getPredefinedStyle(StyleName)) {
> + IO.mapOptional("# BasedOnStyle", StyleName);
> + break;
> ----------------
> Kim Gräsman wrote:
>> IIRC, the YAML parser doesn't take "#" comments, only JavaScript-style "//", but I'm not 100% sure. Did you try roundtripping a dumped configuration?
>
> There's a round-trip test, and it passes for me.
Thanks, I had it backwards -- it only takes the Python-style "#".
Didn't see the round-trip test until just now, good to see it's
covered!
- Kim
More information about the cfe-commits
mailing list