mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Since these different forms of documentation have a similar purpose, and there's already some infrastructure for educational notes, unify all of the diagnostics-related documentation in a single place. We might consider unifying these ideas in the compiler as well, but that's for another day.
636 B
636 B
Unknown "Warning Group" Warnings (UnknownWarningGroup)
The UnknownWarningGroup diagnostic group addresses warnings related to the specification of unrecognized warning groups in compilation flags.
swiftc -Werror non_existing_group file.swift
<unknown>:0: warning: unknown warning group: 'non_existing_group'
Such warnings are emitted after the behavior for all specified warning groups has been processed, which means their behavior can also be specified. For example:
swiftc -Werror UnknownWarningGroup -Werror non_existing_group file.swift
<unknown>:0: error: unknown warning group: 'non_existing_group'