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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy's google-build-namespaces should be named bugprone-anon-namespaces-in-headers
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

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

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

<pre>
    [docs](https://clang.llvm.org/extra/clang-tidy/checks/google/build-namespaces.html)

The current name is not discoverable, and this seems like a very useful warning that nearly everyone should enable. None of the current aliases imply that that this is a generally valuable rule. The only reason I could see _not_ to do this would be to keep space open for a more broad check to ban any declarations with internal linkage in headers.

I could also see an argument that this should be in misc- next to the related misc-declarations-in-headers, but really both seem to belong in bugprone- to me, since they identify constructs that easily lead to ODR violations.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcU02PpDYQ_TXmUqIFBvrjwGE3o5ZySaRV7qsCV4Mzptxy2T3Lv49M92RILkbUx6tXr_RQxE5M1Kvuu-reCkxx9qH_QeY7YTBV19TF4M2a88aPoro3pc9zjHdRzTelr0pfR4c8HZx7LAcfJqWv9CsG_EyU0Zo1_8w0vovS18n7yZHS1yFZZ0rGheSOI8lhjotT-qKqN1V9e75_zQRjCoE4Qq4EK8A-grEy-gcFHDLUb4BsIM5WQIgWAWffCRAeFFZIQrfk4AMDW54gzhiBCYNbgXKBZwKZfXIGiDPeAf7IMX-DuJuOzqKQgF3ubn2ivB4rmRXCREwBnVvhgS5lJAgpw-UlPLsVAqF4ht9h3MYJEfxkH39C9GD8E-pjSw2UY-9Ed9jEAX8nhpsPgLD4QDAEjwY2UXPlgAzIKxgaHQaM1rPAh40zWI4UGB04y-84EViGmdBQkMNe6U9S6MRvzDJimNKSl__a9KXUsOEsVsYSmH7FzCGrFchhJPPM7MmUlsvX2HyvIcWsRhZr8HHezrbtQc7zlLGHNN2DZypzeNmOLJZHymNWsIY42tsKo2eJIY1RniQJxboVHKHJjX--_YCH9e5J4lCYvjGX5oIF9fWpqbuqOrZ1MfcN4tCdj82R2rE9mwr16Xi-dKbCtuvO3bGwva50W9d1U2vdVvXhggarBpvWnC6nm76otqIFrfvXCIUVSdTX9bFqToXDgZxsNtN6bwydbRf63FUOaRLVVs5KlC-caKOjft9zEni6qPy_h3b3yUHzJSOy513h7h5FCq7_r6UnG-c0HEa_KH3NRF6f8h783zRGpa_bdtnPrwUfvf4nAAD__4nFeso">