https://llvm.org/bugs/show_bug.cgi?id=28960
Bug ID: 28960 Summary: clang-format not lining up constructor calls in for loop Product: clang Version: trunk Hardware: All OS: All Status: NEW Severity: normal Priority: P Component: Formatter Assignee: unassignedclangb...@nondot.org Reporter: llvm-b...@justinbogner.com CC: djas...@google.com, kli...@google.com, llvm-bugs@lists.llvm.org Classification: Unclassified Given the following (correctly formatted) snippet: void f() { for (SomeKindOfIterator I(get_the_first_one_somehow()), E(get_the_end_somehow()); I != E; ++I) { // ... } } clang-format changes it like so: void f() { for (SomeKindOfIterator I(get_the_first_one_somehow()), E(get_the_end_somehow()); I != E; ++I) { // ... } } Note that E is lined up with the left bracket of the for(), rather than lined up with I. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs