[clang-tools-extra] [clang-tidy] Add check hicpp-ignored-remove-result (PR #73119)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 6 07:50:01 PST 2023


=?utf-8?q?Björn?= Svensson <bjorn.a.svensson at est.tech>,
=?utf-8?q?Björn?= Svensson <bjorn.a.svensson at est.tech>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/73119 at github.com>


================
@@ -133,6 +133,11 @@ UnusedReturnValueCheck::UnusedReturnValueCheck(llvm::StringRef Name,
                                             "::boost::system::error_code"))),
       AllowCastToVoid(Options.get("AllowCastToVoid", false)) {}
 
+UnusedReturnValueCheck::UnusedReturnValueCheck(llvm::StringRef Name,
----------------
PiotrZSL wrote:

This constructor does not initialize AllowCastToVoid, consider supporting AllowCastToVoid option.
Maybe use constructor delegate.

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


More information about the cfe-commits mailing list