Skip to content

Allow multiple tags in a single gsl::suppress #2043

Closed

Description

@dmitrykobets-msft

Currently gsl::suppress(tag) allows for only one tag at a time. Allowing for multiple tags will be particularly useful once the justification message is more widely used:

[[gsl::suppress(tag1, tag2, ..., tagn, justification: "msg")]] // only requires "msg" to be written once

[[gsl::suppress(tag1, justification: "msg")]] [[gsl::suppress(tag2), justification: "msg"]] ... [[gsl::suppress(tagn, justification: "msg")]] // duplicated "msg"

MSVC already supports having a comma-delimited list of tags in a single gsl::suppress

Activity

  1. hsutter commented on Jul 27, 2023

    @hsutter
    Contributor

    Editors call: Only one tag is allowed. We don't want to complicate the syntax of the tags to enable clarity for tools and humans readers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions