<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/83452>83452</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[bug] clang-tidy `modernize-concat-nested-namespaces` and macros
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
r-barnes
</td>
</tr>
</table>
<pre>
When using `modernize-concat-nested-namespaces` in clang-tidy this:
```
namespace MY_NAMESPACE_MACRO {
namespace nested {
} // nested
} // MY_NAMESPACE_MACRO
```
gets rewritten as
```
namespace my_namespace::nested {
} // my_namespace::nested
```
but the appropriate rewrite is
```
namespace MY_NAMESPACE_MACRO::nested {
} // MY_NAMESPACE_MACRO::nested
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMUk-Pmz4Q_TTmYhEZm38--MBullt-v6o9VD1FA0zBFRhkD63ST1-Fpkm7TZWV0KCx5817z3oQgu0domHZE8v2Eaw0zN74uAHvMETN3J3MxwEdX4N1PWe5mOYOvbPfMW5n1wLFDgNhFzuYMCzQYmC54NbxdgTXx2S7E6fBBqYqJvZM_Kq5uHxbe0Xzw6fjf9Xh5cO76vnleKie3__PWfH0euon6e3mUos9Z7Jmsr4OvD7_e_1dPT1S4B6_eUuEjkN4oHo6Ha_N2amqHir8N-QeVbMSpwE5LIufF2-B8KIPuX2k7o7pt2l8BPyTNuqM6rTSEKFJCqGlLDOdRYPJGyk63WqFpSoAGy2U-JzoFItCaiFEZI0UMhVS6qRIVZLttMrzNslLLBUoAMFSgRPYcTeOX6fd7PvIhrCiKVWayWiEBsewhVjKW-6YlOdQe3MGxc3aB5aK0QYKtzVkadzi36w9y_a_p_bNYQfX8QlaP4do9aMZiJYt7tsb9paGtdm188Rkfaa9_OLFz1-wJSbrzUpgst7c_AgAAP__kP8Pjw">