| Issue |
63795
|
| Summary |
False positive in dry mode with FixNamespaceComments and NamespaceMacros
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
Neverlord
|
When using the `FixNamespaceComments` option with custom `NamespaceMacros`, `clang-format -n` reports an error for code formatted by `clang-format`. Here's a full setup to reproduce:
```
$ cat .clang-format
---
BasedOnStyle: LLVM
FixNamespaceComments: true
Language: Cpp
NamespaceMacros: ["SUITE"]
Standard: Cpp11
UseTab: Never
...
```
```
$ cat test.cpp
SUITE("this.is.my.suite") {
TEST("this.is.my.test") {
ASSERT(1 == 1);
ASSERT(2 == 2);
}
} // SUITE("this.is.my.suite")
```
```
$ clang-format -i test.cpp
$ clang-format -n test.cpp
test.cpp:8:3: warning: code should be clang-formatted [-Wclang-format-violations]
} // SUITE("this.is.my.suite")
^
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs