Skip to content

[Clang] [[gnu::abi_tag]] silently accepted on Windows #173017

@philnik777

Description

@philnik777

Currently Clang doesn't diagnose the use of [[gnu::abi_tag]] when targeting the Windows ABI, even though it's ignored. Instead, Clang should either issue a diagnostic that it's an unsupported attribute, or, IMO preferably, actually mangle the ABI tag into the function name. If the ABI tag isn't desired on Windows, that attribute can simply be removed after all to get the old behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerplatform:windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions