[llvm-bugs] [Bug 32049] New: Formatter doesn't wrap things that use alignment directives well
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 23 12:07:36 PST 2017
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: unassignedclangbugs at nondot.org
Reporter: dcheng at google.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170223/10c46393/attachment.html>
More information about the llvm-bugs
mailing list