[llvm-bugs] [Bug 31281] New: clang-format aligns equals with unrelated code
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 5 15:09:46 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31281
Bug ID: 31281
Summary: clang-format aligns equals with unrelated code
Product: clang
Version: 3.9
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: michelm at microsoft.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 17717
--> https://llvm.org/bugs/attachment.cgi?id=17717&action=edit
Code sample of bug
When using AlignConsecutiveAssignments=true, clang-format will occasionally
align unrelated assignments from different functions. This appears to happen
with only a very specific #ifdef sequences. In the example attached,
clang-format tries to align the nextOpcode = opcode assignment with the
inX64Try assignment, even though they are not in the same function.
--
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/20161205/f8b2553f/attachment-0001.html>
More information about the llvm-bugs
mailing list