r182205 - Clang-format: allow -style="{yaml/json}" on command line

Alexander Kornienko alexfh at google.com
Sun May 19 11:00:02 PDT 2013


On Sun, May 19, 2013 at 5:35 PM, Manuel Klimek <klimek at google.com> wrote:

> Also, I'd suggest to not submit what phabricator produces - those messages
> contain way too much noise for the signal.
>

In this particular case log message generated by phabricator's arc utility
is:

Clang-format: allow -style="{yaml/json}" on command line

Summary: + improved handling of default style and predefined styles.

Reviewers: djasper, klimek

Reviewed By: klimek

CC: cfe-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D813


The first two non-empty lines here are human-written (except for the
"Summary:" word). I would also categorize everything else in this message
except for the "CC: cfe-commits" part as useful information. So my estimate
says the SNR here is quite high. Or am I missing something? Do you have
suggestions on how to improve this message?


> On Sun, May 19, 2013 at 1:08 PM, Alexander Kornienko <alexfh at google.com>wrote:
>
>> I thought it should be rather clear. But if you think otherwise, I'll try
>> to explain:
>> This commit adds support for specifying style configuration in yaml/json
>> format directly as a value of -style command-line option, e.g.
>> -style="{BasedOnStyle: llvm, IndentWidth: 8}". In addition to that it
>> improves getPredefinedStyle method and code handling default style (when no
>> -style specified on command line, or when an invalid style specified, or
>> when BasedOnStyle parameter is not specified in the used .clang-format
>> file, or when BasedOnStyle contains invalid style name). "Improved" here
>> means that there's now only one place where default style name is
>> specified, and fewer places where it's used.
>>
>> Is this detailed enough?
>>
>>
>> On Sun, May 19, 2013 at 6:58 AM, Chandler Carruth <chandlerc at google.com>wrote:
>>
>>>
>>> On Sun, May 19, 2013 at 12:53 AM, Alexander Kornienko <alexfh at google.com
>>> > wrote:
>>>
>>>> Clang-format: allow -style="{yaml/json}" on command line
>>>>
>>>> Summary: + improved handling of default style and predefined styles.
>>>>
>>>
>>> This description doesn't make a whole lot of sense... Can you clarify
>>> what is in this commit? (And watch out for this in the future, or fix
>>> whatever tool if it is a tool that messes this up?)
>>>
>>
>>
>>
>> --
>> Alexander Kornienko | Software Engineer | alexfh at google.com | +49 151
>> 221 77 957
>> Google Germany GmbH | Dienerstr. 12 | 80331 München
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>>
>


-- 
Alexander Kornienko | Software Engineer | alexfh at google.com | +49 151 221
77 957
Google Germany GmbH | Dienerstr. 12 | 80331 München
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130519/113d072a/attachment.html>


More information about the cfe-commits mailing list