[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 09:23:35 PST 2023
Danny =?utf-8?q?Mösch?= <danny.moesch at icloud.com>,
Danny =?utf-8?q?Mösch?= <danny.moesch at icloud.com>,
Danny =?utf-8?q?Mösch?= <danny.moesch at icloud.com>,
Danny =?utf-8?q?Mösch?= <danny.moesch at icloud.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/76249 at github.com>
================
@@ -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:
Consider: readability-return-void-value or readability-void-return-statement or readability-avoid-return-with-void-value.
https://github.com/llvm/llvm-project/pull/76249
More information about the cfe-commits
mailing list