| Issue |
113766
|
| Summary |
[clang-format] Weird indentation of function definition after preprocessor directives
|
| Labels |
clang-format
|
| Assignees |
|
| Reporter |
LucasChollet
|
I would expect this code to be well-formatted:
```cpp
#ifdef __cplusplus
extern "C"
#endif
void f();
```
But clang-format disagrees and format it to:
```cpp
#ifdef __cplusplus
extern "C"
#endif
void
f();
```
Note that there is a related test:
https://github.com/llvm/llvm-project/blob/28a2f57c98431e71f62ce524481a1356a87b5696/clang/unittests/Format/QualifierFixerTest.cpp#L1182-L1187
---
1. I know this is probably opinionated, but do you agree this is indeed something that should be fixed?
2. I would like to help contribute and fix that issue myself? Any ideas where I should start at?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs