Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute syntax TODO: support using #226

Open
elbeno opened this issue Aug 10, 2023 · 1 comment
Open

Attribute syntax TODO: support using #226

elbeno opened this issue Aug 10, 2023 · 1 comment

Comments

@elbeno
Copy link
Contributor

elbeno commented Aug 10, 2023

Since C++17, attributes can have using in them:

[[using name::space: attr]]

Also (this is admittedly strange) the C++ grammar doesn't introduce an attribute with a single [[ token but with two tokens [ [.
(Yes, this means it's really annoying to call an immediately-invoked lambda inside a call to operator[]).

@Tsche
Copy link

Tsche commented Aug 5, 2024

The given example is invalid, attribute-namespaces must be identifiers (dcl.attr.grammar), therefore scope resolution operators may not appear in an attribute-namespace.

Anyway, #278 implements this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants