[Diagnostics] Add -suppress-notes flag

We already have -suppress-warnings and -suppress-remarks; this patch
adds support for suppressing notes too. Doing so is useful for -verify
tests where we don't really care about the emitted notes.
This commit is contained in:
John Hui
2025-10-06 16:59:04 -07:00
parent fbad38093e
commit d68ca8de1e
7 changed files with 39 additions and 2 deletions

View File

@@ -643,7 +643,7 @@ private:
const LangOptions &LangOpts,
const ClangImporterOptions &clangImporterOpts,
const CASOptions &casOpts,
bool suppressRemarks);
bool suppressNotes, bool suppressRemarks);
bool extractSwiftInterfaceVersionAndArgs(CompilerInvocation &subInvocation,
DiagnosticEngine &subInstanceDiags,
SwiftInterfaceInfo &interfaceInfo,