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 for T : Type of Container loop disagrees with GNAT warning #3

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

Comments

@pyjarrett
Copy link

pyjarrett commented Dec 6, 2024

Noticed in this code snippet, autoformat in VS Code results in this:

 function FNV_1A (S : String) return String_Hash is
 begin
    return Value : String_Hash := 14_695_981_039_346_656_037 do
       for C:Character of S loop
          Value := Value xor Character'Pos (C);
          Value := Value * 1099511628211;
       end loop;
    end return;
 end FNV_1A;

This triggers a GNAT warning: (style) space required [-gnatyt] between the C and : of the for loop.

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