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 <[email protected]> wrote:

> On Fri, Aug 30, 2013 at 6:36 AM, Daniel Jasper <[email protected]> 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
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to