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

Formatting of generic discrete type disagrees with GNAT warning #4

Open
pyjarrett opened this issue Dec 27, 2024 · 0 comments
Open

Comments

@pyjarrett
Copy link

pyjarrett commented Dec 27, 2024

Noticed in this code snippet, autoformat in VS Code (with GNATformat) results in this:

generic
   type My_Enum is(<>);
package Example is
   My_Values : array (My_Enum) of Boolean;
end Example;

GNATformat removed the space between is and (<>) and building with GNAT then gives a (style) space required warning between is and (<>).

This is also duplicated when running GNATformat directly, like with gnatformat --project my_example.

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