https://bugs.llvm.org/show_bug.cgi?id=32049

            Bug ID: 32049
           Summary: Formatter doesn't wrap things that use alignment
                    directives well
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

Before:
alignas(DATA_ALIGNMENT)
    uint8_t data[kSegments * (sizeof(media::AudioInputBufferParameters) +
                              frames * channels * sizeof(float))];

Arguably a bit unreadable already, but the formatted result is this:

alignas(
    DATA_ALIGNMENT) uint8_t data[kSegments *
                                 (sizeof(media::AudioInputBufferParameters) +
                                  frames * channels * sizeof(float))];


Which I'm not sure is more readable. It'd be nice not to break in the middle of
alignas, at the very least.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to