[clang] [clang][ssaf] Add JSONFormat support for WPASuite (PR #187403)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 31 09:55:48 PDT 2026


================
@@ -0,0 +1,178 @@
+// Tests for clang-ssaf-format --type wpa that require the example plugin.
+
+// REQUIRES: plugins
+
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+
+// ============================================================================
+// Read errors
+// ============================================================================
+
+// 'results' field is absent.
+// RUN: not clang-ssaf-format --type wpa %S/Inputs/missing-results.json 2>&1 \
+// RUN:   | FileCheck %s --check-prefix=NO-RESULTS
+// NO-RESULTS:      clang-ssaf-format: error: reading WPASuite from file '{{.*}}missing-results.json'
+// NO-RESULTS-NEXT: failed to read WPA results from field 'results': expected JSON array
----------------
steakhal wrote:

This doesn't require plugins, right? I feel like this is also that we might need to split this file to better fit the requires clause.

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


More information about the cfe-commits mailing list