[llvm-bugs] [Bug 34366] New: clang-format misaligns * in first part of for loop if third part of for loop contains comma
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 29 21:59:33 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34366
Bug ID: 34366
Summary: clang-format misaligns * in first part of for loop if
third part of for loop contains comma
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Should look like so:
static void CopyRange() {
A* value;
for (A* a = start; a < e_end; ++a, ++value) {
}
}
Actually looks like so:
$ bin/clang-format -style=Google ~/src/chrome/src/test.cc
static void CopyRange() {
A* value;
for (A *a = start; a < e_end; ++a, ++value) {
}
}
It's a bit surprising that clang-format gets this fairly simple thing wrong.
--
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/20170830/a3abd3e8/attachment.html>
More information about the llvm-bugs
mailing list