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

Danny Mösch via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 22 09:33:20 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");
----------------
SimplyDanny wrote:

`readability-avoid-return-with-void-value` sounds good.

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


More information about the cfe-commits mailing list