r189663 - clang-format: Enable formatting of protocol buffer definitions.

Daniel Jasper djasper at google.com
Mon Sep 2 01:08:46 PDT 2013


clang-format does not care about such "details" ;-). It needs to be robust
enough anyway in order format code with syntax errors (at least to a
limited degree).


On Sat, Aug 31, 2013 at 5:38 AM, Sean Silva <silvas at purdue.edu> wrote:

> On Fri, Aug 30, 2013 at 6:36 AM, Daniel Jasper <djasper at google.com> wrote:
>
>> Almost by accident, clang-format seems to be able to format protocol
>> buffer definitions (https://code.google.com/p/protobuf/).
>>
>
> wtf? Can you maybe explain how this can possibly work?
>
> E.g. how "message" is being accepted in place of "struct"/"class" and how
> "required" can be accepted in front of a declaration?
>
> -- Sean Silva
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130902/ce8908c5/attachment.html>


More information about the cfe-commits mailing list