It's nice to find little gems like this when revisiting the available compiler warnings / lints: github.com/GrapheneOS/har. This is also one of many cases where clang-tidy can apply the fixes itself via -fix-errors. It's a bit annoying that they overly namespace some generic lints.
Conversation
Replying to
There's a list of the available clang-tidy checks at clang.llvm.org/extra/clang-ti. You'll notice some of the generic, more broadly applicable ones are in a project namespace, like everything in the android- namespace. It's a bit irritating since portability of some checks is unclear.
1
