https://bugs.llvm.org/show_bug.cgi?id=50679
Bug ID: 50679
Summary: [clang-format] strange behavior for #define macro with
braces
Product: clang
Version: 12.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: pryga.pi...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
When there is a #define macro that starts with brace, then clang-format seems
to be treating it a if it is a struct/class declaration, e.g.
#define RAW {1}, {2}, {3}
is formated into this:
#define FORMATTED \
{ 1 }, { 2 }, \
{ \
3 \
}
It seems to be that it should stay not changed at all.
I'm using clang-12 with .clang-format as the one here:
https://github.com/zephyrproject-rtos/zephyr/blob/main/.clang-format
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs