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

UDAs with single template argument are sandwiched with declaration #599

Open
dkorpel opened this issue Mar 21, 2024 · 0 comments
Open

UDAs with single template argument are sandwiched with declaration #599

dkorpel opened this issue Mar 21, 2024 · 0 comments

Comments

@dkorpel
Copy link

dkorpel commented Mar 21, 2024

Input:

@1 float f() => 1.0;

@"test name" unittest 
{
}

Expected output: the same
Actual dfmt output:

@1float f() => 1.0;

@"test name"unittest
{
}

The spaces after the attributes are removed, leading to code that looks worse or won't even compile anymore if you're unlucky.

@dkorpel dkorpel changed the title UDAs with single template argument are sandwhiched with declaration UDAs with single template argument are sandwiched with declaration Mar 21, 2024
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

1 participant