dotnet/roslyn#30172: Programmatic suppression of warnings
Provide an ability for platform/library authors to author simple, context-aware compiler extensions to programmatically suppress specific instances of reported analyzer and/or compiler diagnostics, which are always known to be false positives in the context of the platform/library.
An analyzer/compiler diagnostic would be considered a candidate for programmatic suppression if all of the following conditions hold:
- Not an error by default: Diagnostic's DefaultSeverity is not DiagnosticSeverity.Error.