| Issue |
53366
|
| Summary |
Wrong comment indentation before pre-processor line by clang-format
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
Julien-Elie
|
The second comment has extra-indentation whereas I do not believe it should be the case.
```
if (test) {
/* First test. */
if (first)
doThis;
/* Second test. */
#ifdef HAVE_OPENSSL
if (second)
doThat;
#endif
}
```
Note that the comment is correctly aligned if I close the `if` block, or it there is no pre-processor lines:
```
if (test) {
/* First test. */
if (first) {
doThis;
}
/* Second test. */
#ifdef HAVE_OPENSSL
if (second)
doThat;
#endif
}
```
```
if (test) {
/* First test. */
if (first)
doThis;
/* Second test. */
if (second)
doThat;
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs