Consider: #define MY_NAMESPACE foo namespace MY_NAMESPACE { } // namespace MY_NAMESPACE clang-tidy wants to change the last line to `} // namespace foo`. It shouldn't. (Fix: If the namespace name is a macro token, check if the macro name matches what's in the closing comment, and don't change that if so.) https://codereview.chromium.org/1629693002/diff/1/base/containers/hash_tables.h
It was fixed in commit: 4736d63f752f8d13f4c6a9afd558565c32119718 Review can be found here: https://reviews.llvm.org/D69855 I will close this bug now.
Reverted 4736d63f752f8d13f4c6a9afd558565c32119718, because it introduces false positives. Sent out an alternative fix: https://reviews.llvm.org/D70974
The new fix has landed in commit fac4e3c5f8a018599cbd9363a735b1c13e8f8a05.