[cfe-dev] Clang-format ideas

Kim Gräsman kim.grasman at gmail.com
Fri Oct 11 01:35:30 PDT 2013


Thanks, all!

On Thu, Oct 10, 2013 at 5:26 PM, Sean Silva <silvas at purdue.edu> 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 :)

I have a sketchy patch for this that I'll try and clean up and post
for review as soon as possible.

The namespace declaration style may be more work, so I'll see if I can
find some time to figure it out once I'm better acquainted with the
code base.

Cheers,
- Kim



More information about the cfe-dev mailing list