[clang-tools-extra] [clang-tidy] introduce a must use check (PR #76101)

Tyler Rockwood via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 21 11:45:15 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");
----------------
rockwotj wrote:

Merging that check and mine STGM (as well as the naming of your check). Do you have source for your check you'd like to point to? Otherwise I'm happy to add in a lot of these.

https://github.com/llvm/llvm-project/pull/76101


More information about the cfe-commits mailing list