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

Daniel Jasper djasper at google.com
Mon Nov 11 08:13:35 PST 2013


There is no such option yet, but it is planned as we need it for a couple
of other coding styles as well..
On Nov 11, 2013 8:10 AM, "David Blaikie" <dblaikie at gmail.com> wrote:

> 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/a4facfb5/attachment.html>


More information about the cfe-users mailing list