@@ -707,6 +707,9 @@ namespace swift {
707707
708708 // / Don't emit any warnings
709709 bool suppressWarnings = false ;
710+
711+ // / Don't emit any remarks
712+ bool suppressRemarks = false ;
710713
711714 // / Emit all warnings as errors
712715 bool warningsAsErrors = false ;
@@ -745,6 +748,10 @@ namespace swift {
745748 // / Whether to skip emitting warnings
746749 void setSuppressWarnings (bool val) { suppressWarnings = val; }
747750 bool getSuppressWarnings () const { return suppressWarnings; }
751+
752+ // / Whether to skip emitting remarks
753+ void setSuppressRemarks (bool val) { suppressRemarks = val; }
754+ bool getSuppressRemarks () const { return suppressRemarks; }
748755
749756 // / Whether to treat warnings as errors
750757 void setWarningsAsErrors (bool val) { warningsAsErrors = val; }
@@ -763,6 +770,7 @@ namespace swift {
763770 void swap (DiagnosticState &other) {
764771 std::swap (showDiagnosticsAfterFatalError, other.showDiagnosticsAfterFatalError );
765772 std::swap (suppressWarnings, other.suppressWarnings );
773+ std::swap (suppressRemarks, other.suppressRemarks );
766774 std::swap (warningsAsErrors, other.warningsAsErrors );
767775 std::swap (fatalErrorOccurred, other.fatalErrorOccurred );
768776 std::swap (anyErrorOccurred, other.anyErrorOccurred );
@@ -880,6 +888,12 @@ namespace swift {
880888 return state.getSuppressWarnings ();
881889 }
882890
891+ // / Whether to skip emitting remarks
892+ void setSuppressRemarks (bool val) { state.setSuppressRemarks (val); }
893+ bool getSuppressRemarks () const {
894+ return state.getSuppressRemarks ();
895+ }
896+
883897 // / Whether to treat warnings as errors
884898 void setWarningsAsErrors (bool val) { state.setWarningsAsErrors (val); }
885899 bool getWarningsAsErrors () const {
0 commit comments