[clang-tools-extra] [clang-tidy] Add check readability-return-expression-in-void-function (PR #76249)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 22 08:42:45 PST 2023


================
@@ -119,6 +120,8 @@ class ReadabilityModule : public ClangTidyModule {
         "readability-redundant-preprocessor");
     CheckFactories.registerCheck<ReferenceToConstructedTemporaryCheck>(
         "readability-reference-to-constructed-temporary");
+    CheckFactories.registerCheck<ReturnExpressionInVoidFunctionCheck>(
+        "readability-return-expression-in-void-function");
----------------
PiotrZSL wrote:

I'm not sure about this name, if this is about return argument, or just an return

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


More information about the cfe-commits mailing list