Skip to content

Conversation

@artemcm
Copy link
Contributor

@artemcm artemcm commented Oct 23, 2025

This brings this control in line with other diagnostic controls we have which operate on a per-group level. DefaultIgnoreWarnings diagnostic group option applies to all warnings belonging to a certain diagnostic group.

The inheritance rules are:

  • Marking a diagnostic group as DefaultIgnoreWarnings means warnings belonging to this group will not be emitted by-default
    • Warnings belonging to sub-groups of this group will also not be emitted by-default
  • Enabling a DefaultIgnoreWarnings group (with -Werror,-Wwarning, etc.) means warnings belonging to this group will be emitted.
    • Warnings belonging to sub-groups of this group will also be emitted.
    • Warnings belonging to super-groups of this group will not be affected.

@artemcm
Copy link
Contributor Author

artemcm commented Oct 23, 2025

@swift-ci test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

Love this, thank you!

…esponding option on diagnostic groups

This brings this control in line with other diagnostic controls we have which operate on a per-group level.
'DefaultIgnoreWarnings' diagnostic group option applies to all warnings belonging to a certain diagnostic group.

The inheritance rules are:
- Marking a diagnostic group as 'DefaultIgnoreWarnings' means warnings belonging to this group will not be emitted by-default
  - Warnings belonging to sub-groups of this group will also not be emitted by-default
- Enabling a 'DefaultIgnoreWarnings' group (with '-Werror','-Wwarning', etc.) means warnings belonging to this group will be emitted.
  - Warnings belonging to sub-groups of this group will also be emitted.
  - Warnings belonging to super-groups of this group will not be affected.
@artemcm artemcm force-pushed the DefaultIgnoreDiagnosticGroups branch from 5395e8b to 83eea39 Compare October 23, 2025 23:30
@artemcm
Copy link
Contributor Author

artemcm commented Oct 23, 2025

@swift-ci smoke test

@artemcm artemcm enabled auto-merge October 23, 2025 23:30
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.

3 participants