You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Are profile names the only way of selecting multiple rules in a single tag inside gsl::suppress? #2046
In.force: Enforcement currently specifies only 3 warning "groups", one for each of the 3 profiles: type, bounds, lifetime.
However, one might want to be more granular, for instance suppressing all warnings under a certain major section or subsection i.e., [[gsl::suppress(C)]] or [[gsl::suppress(C.ctor)]].
If this is accepted, then certain naming conventions should be cleaned up / standardized. Some examples:
Throughout the CG the C section rules are referred to simply like C.20 or C.160, even if they are in different subsections (C.20 is under C.ctor and C.160 is under C.over). In contrast, the SL major section rules always include the subsection (i.e., SL.io.4, SL.str.3, ...).
Editors call: We agree that this is a problem we have to solve, and we'll keep this issue open as we give it thought, including exploring finding good names for all sections and deciding whether to consistently embrace multi-level names.
Activity
hsutter commentedon Jul 27, 2023
Editors call: We agree that this is a problem we have to solve, and we'll keep this issue open as we give it thought, including exploring finding good names for all sections and deciding whether to consistently embrace multi-level names.
hsutter commentedon Jul 27, 2023
See also #2044
hsutter commentedon Feb 15, 2024
Editors call: Yes, those three profile names are the only exceptions to that suppress must give a single rule number.