This is at odds with the coding standard.
Quoting https://llvm.org/docs/CodingStandards.html#anonymous-namespaces
Because of this, we have a simple guideline: make anonymous namespaces
as small as possible, and only use them for class declarations.
Differential D149664
Add -misc-use-anonymous-namespace to .clang-tidy barannikov88 on May 2 2023, 10:13 AM. Authored by
Details This is at odds with the coding standard.
Diff Detail
Event Timeline
Comment Actions @MaskRay Do you mean that 'no-' and/or 'use-' should be ignored for the purpose of lexicographical comparison? (I don't mind, just in case.) Comment Actions Ah, sorry. I think your order is correct. I agree that our coding style is contrary to misc-use-anonymous-namespace and should not use misc-use-anonymous-namespace. |
Move before -misc-no-recursion for an alphabetical order.