[clang-tools-extra] [clang-tidy] introduce a must use check (PR #76101)
Piotr Zegar via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 21 14:19:28 PST 2023
================
@@ -54,6 +55,7 @@ class MiscModule : public ClangTidyModule {
CheckFactories.registerCheck<MisleadingIdentifierCheck>(
"misc-misleading-identifier");
CheckFactories.registerCheck<MisplacedConstCheck>("misc-misplaced-const");
+ CheckFactories.registerCheck<MustUseCheck>("misc-must-use");
----------------
PiotrZSL wrote:
I think isReferenced is newer, so stick to it. Fell free to merge those, check that i pointed out is old, so basicly the main thing that is missing in yuors is a validation of trivial type and support for inclusion/exclusion matchers.
and few tests, so just start with that. rename check and we go from this.
https://github.com/llvm/llvm-project/pull/76101
More information about the cfe-commits
mailing list