@@ -616,6 +616,9 @@ namespace swift {
616616
617617 // / Don't emit any warnings
618618 bool suppressWarnings = false ;
619+
620+ // / Don't emit any notes
621+ bool suppressNotes = false ;
619622
620623 // / Don't emit any remarks
621624 bool suppressRemarks = false ;
@@ -663,6 +666,10 @@ namespace swift {
663666 void setSuppressWarnings (bool val) { suppressWarnings = val; }
664667 bool getSuppressWarnings () const { return suppressWarnings; }
665668
669+ // / Whether to skip emitting notes
670+ void setSuppressNotes (bool val) { suppressNotes = val; }
671+ bool getSuppressNotes () const { return suppressNotes; }
672+
666673 // / Whether to skip emitting remarks
667674 void setSuppressRemarks (bool val) { suppressRemarks = val; }
668675 bool getSuppressRemarks () const { return suppressRemarks; }
@@ -708,6 +715,7 @@ namespace swift {
708715 void swap (DiagnosticState &other) {
709716 std::swap (showDiagnosticsAfterFatalError, other.showDiagnosticsAfterFatalError );
710717 std::swap (suppressWarnings, other.suppressWarnings );
718+ std::swap (suppressNotes, other.suppressNotes );
711719 std::swap (suppressRemarks, other.suppressRemarks );
712720 std::swap (warningsAsErrors, other.warningsAsErrors );
713721 std::swap (fatalErrorOccurred, other.fatalErrorOccurred );
@@ -904,6 +912,12 @@ namespace swift {
904912 return state.getSuppressWarnings ();
905913 }
906914
915+ // / Whether to skip emitting notes
916+ void setSuppressNotes (bool val) { state.setSuppressNotes (val); }
917+ bool getSuppressNotes () const {
918+ return state.getSuppressNotes ();
919+ }
920+
907921 // / Whether to skip emitting remarks
908922 void setSuppressRemarks (bool val) { state.setSuppressRemarks (val); }
909923 bool getSuppressRemarks () const {
0 commit comments