Skip to content

Support silencing -Wimplicit-fallthrough via comments #58693

@carlosgalvezp

Description

@carlosgalvezp

GCC supports silencing the -Wimplicit-fallthrough warning via comments, for users that are stuck in pre-C++17. That's not the case for Clang, however. It would be good if Clang had feature parity with GCC in this regard.

Example on Compiler Explorer: https://godbolt.org/z/z94KGqaxq

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerclang:frontendLanguage frontend issues, e.g. anything involving "Sema"duplicateResolved as duplicateenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions