[llvm-bugs] [Bug 39706] New: clang-format gets confused when enum values comma separators are preceded with comments

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 19 06:11:08 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=39706

            Bug ID: 39706
           Summary: clang-format gets confused when enum values comma
                    separators are preceded with comments
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ehsan at mozilla.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

See the test case below:

$ cat test.cpp
enum foo {
  x // comment
  , y // comment
  , z // comment
};
$ clang-format -style=Google test.cpp
enum foo {
  x  // comment
  ,
  y  // comment
  ,
  z  // comment
};

-- 
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/20181119/1b8bf0c8/attachment.html>


More information about the llvm-bugs mailing list