Skip to content

Generate warning suppressions in an XML format - #1386

Merged
mateoatr merged 9 commits into
dotnet:masterfrom
mateoatr:genWarnSuppressionsXML
Aug 5, 2020
Merged

Generate warning suppressions in an XML format #1386
mateoatr merged 9 commits into
dotnet:masterfrom
mateoatr:genWarnSuppressionsXML

Conversation

@mateoatr

Copy link
Copy Markdown
Contributor

See #1380. This changes the existing --generate-warning-suppressions option to receive a string argument (cs/xml) which tells the suppression writer in which format should the warning suppressions be emitted, either as a C# source file (this is the current behavior) or as an XML file that follows the linker's annotation format.

/cc @layomia

@mateoatr
mateoatr requested a review from vitek-karas July 24, 2020 01:58
@mateoatr
mateoatr requested a review from marek-safar as a code owner July 24, 2020 01:58
@mateoatr mateoatr self-assigned this Jul 24, 2020
Comment thread src/linker/Linker/Driver.cs Outdated
Comment thread src/linker/Linker/WarningSuppressionWriter.cs Outdated
Comment thread src/linker/Linker/WarningSuppressionWriter.cs Outdated
Comment thread test/Mono.Linker.Tests/TestCases/Dependencies/WarningSuppressionExpectations3.xml Outdated
Comment thread docs/illink-options.md Outdated
Comment thread docs/illink-options.md Outdated
Comment thread src/linker/Linker/Driver.cs Outdated
Comment thread src/linker/Linker/WarningSuppressionWriter.cs Outdated
Comment thread src/linker/Linker/WarningSuppressionWriter.cs Outdated
Comment thread src/linker/Linker/WarningSuppressionWriter.cs Outdated
Comment thread src/linker/Linker/WarningSuppressionWriter.cs Outdated
Comment thread src/linker/Linker/Driver.cs Outdated
Mateo Torres Ruiz added 2 commits July 30, 2020 13:43
Comment thread src/linker/Linker/WarningSuppressionWriter.cs Outdated

@sbomer sbomer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if you change the sorting behavior. Thanks!

Comment thread src/linker/Linker/WarningSuppressionWriter.cs Outdated
@mateoatr
mateoatr requested a review from marek-safar August 5, 2020 00:07
@mateoatr
mateoatr merged commit e88e769 into dotnet:master Aug 5, 2020
tkapin pushed a commit to tkapin/runtime that referenced this pull request Jan 31, 2023
* Emit warning suppression files either in cs or xml format

Commit migrated from dotnet/linker@e88e769
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants