In libc++ most of the names are not conforming to the llvm style. Removing the readability-identifier-naming check removes almost all clang-tidy warnings. For example in <string> the warning count goes from 1001 warnings down to 7.
Details
Details
- Reviewers
Mordante ldionne - Group Reviewers
Restricted Project - Commits
- rG1ff87ec235b8: [libc++] [NFC] Disable clang-tidy's readability-identifier-naming check
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
- The commit message seems overconfident. ;) It'd be better to say something about the functionality of the patch, e.g. "[libc++] [NFC] Disable clang-tidy's readability-identifier-naming check."
- Adding this new .clang-tidy file isn't going to automagically enable code-review-spam from clang-tidy on Phab reviews, is it? We've successfully banished clang-format-spam through some black magic I don't understand, so I hope this isn't similar black magic to enable a new kind of spam.
LGTM % those comments, though.
Comment Actions
I don't think it is enabling anything automagically. At least that's not the intention.
Comment Actions
It would be interesting to have settings would find real issues in libc++. When we have those I wouldn't mind to enable them. (I'm not sure how feasible that is, since we sometimes write "bad code" on purpose.)
But this check is indeed not useful in libc++ so LGTM. I think it would be nice to keep the commit message more neutral or provide numbers of the number of warnings this removes.
Comment Actions
@philnik If you intend to keep contributing feel free to request commit access https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access.