@@ -616,6 +616,9 @@ namespace swift {
616
616
617
617
// / Don't emit any warnings
618
618
bool suppressWarnings = false ;
619
+
620
+ // / Don't emit any notes
621
+ bool suppressNotes = false ;
619
622
620
623
// / Don't emit any remarks
621
624
bool suppressRemarks = false ;
@@ -663,6 +666,10 @@ namespace swift {
663
666
void setSuppressWarnings (bool val) { suppressWarnings = val; }
664
667
bool getSuppressWarnings () const { return suppressWarnings; }
665
668
669
+ // / Whether to skip emitting notes
670
+ void setSuppressNotes (bool val) { suppressNotes = val; }
671
+ bool getSuppressNotes () const { return suppressNotes; }
672
+
666
673
// / Whether to skip emitting remarks
667
674
void setSuppressRemarks (bool val) { suppressRemarks = val; }
668
675
bool getSuppressRemarks () const { return suppressRemarks; }
@@ -708,6 +715,7 @@ namespace swift {
708
715
void swap (DiagnosticState &other) {
709
716
std::swap (showDiagnosticsAfterFatalError, other.showDiagnosticsAfterFatalError );
710
717
std::swap (suppressWarnings, other.suppressWarnings );
718
+ std::swap (suppressNotes, other.suppressNotes );
711
719
std::swap (suppressRemarks, other.suppressRemarks );
712
720
std::swap (warningsAsErrors, other.warningsAsErrors );
713
721
std::swap (fatalErrorOccurred, other.fatalErrorOccurred );
@@ -904,6 +912,12 @@ namespace swift {
904
912
return state.getSuppressWarnings ();
905
913
}
906
914
915
+ // / Whether to skip emitting notes
916
+ void setSuppressNotes (bool val) { state.setSuppressNotes (val); }
917
+ bool getSuppressNotes () const {
918
+ return state.getSuppressNotes ();
919
+ }
920
+
907
921
// / Whether to skip emitting remarks
908
922
void setSuppressRemarks (bool val) { state.setSuppressRemarks (val); }
909
923
bool getSuppressRemarks () const {
0 commit comments