[clang-tools-extra] [clang-tidy] Fix option serialization in misc-throw-by-value-catch-by-reference (PR #184750)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 5 04:06:00 PST 2026


================
@@ -31,8 +31,8 @@ void ThrowByValueCatchByReferenceCheck::registerMatchers(MatchFinder *Finder) {
 
 void ThrowByValueCatchByReferenceCheck::storeOptions(
     ClangTidyOptions::OptionMap &Opts) {
-  Options.store(Opts, "CheckThrowTemporaries", true);
-  Options.store(Opts, "WarnOnLargeObjects", WarnOnLargeObject);
+  Options.store(Opts, "CheckThrowTemporaries", CheckAnonymousTemporaries);
----------------
vbvictor wrote:

So before this change options didn't work at all?

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


More information about the cfe-commits mailing list