Skip to content

[Clang] Missing diagnostics for attributes after namespace name #121407

@MagentaTreehouse

Description

@MagentaTreehouse

The location of the attribute is non-standard in this code:

namespace N [[deprecated]] {}

But clang doesn't emit any diagnostics with -Wall -Wextra -Wpedantic.
Compiler Explorer: https://compiler-explorer.com/z/6zcPanj5Y

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions