[cfe-users] clang-format: Function argument alignment

David Blaikie dblaikie at gmail.com
Mon Nov 11 08:10:35 PST 2013


Configuration options are added on an as-needed basis. There's probably
just not been a need for this particular configuration option yet.


On Sun, Nov 10, 2013 at 9:25 AM, Chris Spencer <spencercw at gmail.com> wrote:

> Hi all,
>
> I've been playing around with clang-format (great tool by the way),
> and I'm looking for how to control how arguments are aligned over line
> breaks. For example, this line:
>
> glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, SCALED_WIDTH, SCALED_HEIGHT,
> GL_BGRA, GL_UNSIGNED_BYTE, nullptr);
>
> when formatted the arguments are aligned with the open parenthesis:
>
> glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, SCALED_WIDTH, SCALED_HEIGHT,
> GL_BGRA,
>                 GL_UNSIGNED_BYTE, nullptr);
>
> I need this to use a single indent after the line break, regardless of
> where the parenthesis is, but I can't find any option to do this. Is
> this possible?
>
> Thanks,
>
> Chris
> _______________________________________________
> cfe-users mailing list
> cfe-users at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20131111/c4e053d0/attachment.html>


More information about the cfe-users mailing list