[cfe-dev] Clang-format ideas

Sean Silva silvas at purdue.edu
Thu Oct 10 08:26:41 PDT 2013


On Thu, Oct 10, 2013 at 4:59 AM, Renato Golin <renato.golin at linaro.org>wrote:

> Hi Kim,
>
> Daneil Jasper (CC'd) has done a lot of changes on the clang-format tool,
> he might be of some help.
>
>
> On 10 October 2013 07:41, Kim Gräsman <kim.grasman at gmail.com> wrote:
>
>> 1) As far as I can tell the indentation for continuation lines is
>> always 4. Is there a strong reason, or could we add a style option for
>> it?
>>
>
> I don't see why it should be a fixed option. Looks like no one bothered
> changing. ;)
>

I've recently encountered one project where the coding standard requires
that continuation lines be indented by 1 space, and I found this to be an
issue with clang-format's formatting as well; it would be great to make
this configurable :)

-- Sean Silva


>
>
> 2) We have a slightly unusual standard for namespace declarations,
>> where we nest them on one line,
>>
>
> This is odd, but, aren't we all? ;)
>
>
>
>> I'd love to put some time into this if it seems like good ideas.
>>
>
> I was not involved in the project, but I can't see why it wouldn't be a
> good idea to improve such a good tool even further.
>
> cheers,
> --renato
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131010/934b232e/attachment.html>


More information about the cfe-dev mailing list