[clang] [clang] [diagnostics] Add `-fdiagnostics-add-output` switch for SARIF (PR #185201)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 9 08:58:02 PDT 2026


================
@@ -50,6 +50,15 @@ namespace clang {
 class SarifDocumentWriter;
 class SourceManager;
 
+struct SarifVersion {
+  StringRef SchemaVersion;
+  StringRef CommandLineVersion;
+  StringRef SchemaURI;
+  bool IsDefault;
+
+  bool isDefault() const { return IsDefault; }
----------------
steakhal wrote:

This function is kind of overkill. Remember, one can pass the address of a non-static data member to `std::mem_fn` despite its suffixed with `_fn`. I know, it's weird.

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


More information about the cfe-commits mailing list