[clang] [clang] [diagnostics] Add `-fdiagnostics-add-output` switch for SARIF (PR #185201)
Dave Bartolomeo via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 09:30:31 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; }
----------------
dbartol wrote:
Oh, that function was left over from something I was trying with `llvm::find_singleton`. I've removed it and just stuck with `std::mem_fn` on the variable.
https://github.com/llvm/llvm-project/pull/185201
More information about the cfe-commits
mailing list