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

Aviral Goel via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 26 07:44:39 PDT 2026


================
@@ -0,0 +1,151 @@
+//===- ExamplePlugin.cpp - Example SSAF plugin ----------------------------===//
----------------
aviralg wrote:

The approach of having an "example" plugin is admittedly questionable. The other approach would be to put this in unittests, but then lit test will have a dependency on the unittest binary, which is unconventional. Having the example plugin as part of the core implementation lets us easily depend on it for lit tests. My plan is to move all the unitttest registrations for LU/TUSummary(Encoding) to this file (and convert those tests to lit tests). That way, this file will also serves as a simple demonstration of how to extend the framework with custom format, summary, and analysis.


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


More information about the cfe-commits mailing list