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: unassignedclangb...@nondot.org
          Reporter: nicolaswe...@gmx.de
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to