[clang-tools-extra] [clang-tidy] Fix crash in readability-suspicious-call-argument on malformed config (PR #180351)

via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 7 06:47:57 PST 2026


================
@@ -0,0 +1,7 @@
+// RUN: %check_clang_tidy %s readability-suspicious-call-argument %t \
+// RUN: -config="{CheckOptions: {readability-suspicious-call-argument.Abbreviations: 'crash='}}" -- -std=c++11-or-later
+
+void f() {}
+// CHECK-MESSAGES: warning: Invalid abbreviation configuration 'crash=', ignoring.
+
+// TODO: Add testcases for other options
----------------
zeyi2 wrote:

There are no tests for Options in this check. IMHO this is out of scope of this PR (which mainly focuses on fixing the crash), so I add a TODO here.

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


More information about the cfe-commits mailing list