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