[llvm-bugs] [Bug 25778] New: What is AlignOperands suppose to do?
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 8 10:55:21 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25778
Bug ID: 25778
Summary: What is AlignOperands suppose to do?
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: jasjuang at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
Suppose I have a code snippet
void main() {
aa = (bb) ? cc : dd;
aaaa = (bbbb) ? cccc : dddd;
}
I thought setting AlignOperands to true should make this
void main() {
aa = (bb) ? cc : dd;
aaaa = (bbbb) ? cccc : dddd;
}
but the code remains the same.
Tested with the latest trunk by command
clang-format test.cpp -style="{AlignOperands: true,
AlignConsecutiveAssignments: true}"
Please let me know what I am missing. Thanks!
--
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/20151208/e50930af/attachment.html>
More information about the llvm-bugs
mailing list