Issue |
127381
|
Summary |
[clang-format 21.0.0] Macro blocks should not be formatted
|
Labels |
clang-format
|
Assignees |
|
Reporter |
andr2000
|
Tested on/with:
1. clang-format 21.0.0git (https://github.com/llvm/llvm-project.git 82605285b8c6)
2. .clang-format used: https://github.com/andr2000/xen/blob/clang_cmnty_drivers_v001/xen/.clang-format
3. File in question: https://github.com/andr2000/xen/blob/clang_cmnty_drivers_v001/xen/drivers/char/ns16550.c
```
MacroBlockBegin: '^PLATFORM_START|^DT_DEVICE_START|^ACPI_DEVICE_START'
MacroBlockEnd: '^PLATFORM_END|^DT_DEVICE_END|^ACPI_DEVICE_END'
```
What I see:
```
[snip]
ACPI_DEVICE_START(ans16550, "NS16550 UART", DEVICE_SERIAL)
.class_type = ACPI_DBG2_16550_COMPATIBLE, .init = ns16550_acpi_uart_init,
ACPI_DEVICE_END
[snip]
```
What is expected:
```
ACPI_DEVICE_START(ans16550, "NS16550 UART", DEVICE_SERIAL)
.class_type = ACPI_DBG2_16550_COMPATIBLE,
.init = ns16550_acpi_uart_init,
ACPI_DEVICE_END
```
It is expected(?) that macro blocks are not formatted or other way provided to control their formatting
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs