<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/63795>63795</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            False positive in dry mode with FixNamespaceComments and NamespaceMacros
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Neverlord
      </td>
    </tr>
</table>

<pre>
    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")
  ^
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUlE1v4jwQxz-NcxklSuy8kEMOUEDPI7VdaaHbs5MMiVeOHdkOXb79yoR2C612VQlBPPObYf7jmXBrRacQK5KtSLYO-OR6bapHPKKR2rRBrdtT9dyjgskK1YHrEUgeb8WvRz6gHXmDd3oYUDlL8hj06IRW8CJcD81knR48_YY-8MZoDxJ65x2N5KoLD9oM3EGofAaDozbOAleAxmgDB22g0S3CjDlsoT7dBpM8juA_NEhoYYHDYZISLLppBKd9TqPbqUHCliRek_j1O48vn_lIU2i4g-iqrNkXhuH8sOIW229q507Sp4P7-x8Ps-fTnrAlODPhTNxz1U28O8fdjeNsvG0OW4K_DEp3T__vN4RSkq1ncue4arlpL-FJMpufLO557Y3na5uNURR9rvFvwh1aFzXjeNF8KWBBKHW9sJGw0XCK7CQc-rJoCaRYvU-73-z2H3if9BYHWO52m-8eToCwNWFrSAgtCfsI0FeAvgdIsb4SVKyB0C2hW_hn1V_sy9WIitsefUTULfJ6JGy5IGzJ_E29cKOE6vzjebZtryfZQo1Xyfysk2wVPr83hkehJfdrZt8m4-vyAUi2uREdtBVrS1byAKskX5RxHqclDfqKUZa0MWaHlJWcNnGeMpalDJPFoU7SggaiojFlcZEkcUEXCY2SokwSvsiL5lDXOVKSxjhwISMpj0OkTRcIayesclaUWSB5jdJW89grfIGzcx79wFQ-JqynzpI0lsI6-yeLE05iteXSIozaCieOCEJBa04w-Mae30SfbSZw1cLN7gWTkVXv3Oi3cO5nJ1w_1VGjB0K3_m8vP-Fo9E9sHKHbc7GW0O1ZzO8AAAD__4-2kTQ">