@@ -51,12 +51,26 @@ private predicate unknownErrors(@diagnostic d, string msg, int sev) {
5151
5252/**
5353 * Holds if an extraction error or warning occurred that should be reported to end users,
54- * with the error message `msg` and SARIF severity `sev`.
54+ * with the message `msg` and SARIF severity `sev`.
5555 */
5656predicate reportableDiagnostics ( @diagnostic d , string msg , int sev ) {
57- knownWarnings ( d , msg , sev ) or knownErrors ( d , msg , sev ) or unknownErrors ( d , msg , sev )
57+ reportableWarnings ( d , msg , sev ) or reportableErrors ( d , msg , sev )
5858}
5959
60+ /**
61+ * Holds if an extraction error occurred that should be reported to end users,
62+ * with the message `msg` and SARIF severity `sev`.
63+ */
64+ predicate reportableErrors ( @diagnostic d , string msg , int sev ) {
65+ knownErrors ( d , msg , sev ) or unknownErrors ( d , msg , sev )
66+ }
67+
68+ /**
69+ * Holds if an extraction warning occurred that should be reported to end users,
70+ * with the message `msg` and SARIF severity `sev`.
71+ */
72+ predicate reportableWarnings ( @diagnostic d , string msg , int sev ) { knownWarnings ( d , msg , sev ) }
73+
6074/**
6175 * Holds if compilation unit `f` is a source file that has
6276 * no relevant extraction diagnostics associated with it.
0 commit comments