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

gnatpp: Formatting of if statements #10

Open
ProudPenguin opened this issue Aug 30, 2019 · 1 comment
Open

gnatpp: Formatting of if statements #10

ProudPenguin opened this issue Aug 30, 2019 · 1 comment

Comments

@ProudPenguin
Copy link

I like the command line options --call-threshold=nnn and --par-threshold=nnn and would like to know if such option could be also introduced for if statements?

Some unformatted example source code:

if A = 1 and B > 2 and C < 3 and D /= 4 then
   null;
end if;

Setting a new option (for example xyz-threshold) to 2 would result into:

if A = 1 and B > 2 and
   C < 3 and D /= 4 then
   null;
end if;

Or xyz-threshold=1:

if A = 1 and
   B > 2 and
   C < 3 and
   D /= 4 then
   null;
end if;
@ArnaudCharlet
Copy link
Member

Thank you for your suggestion. Yes, this is technically feasible although each added option adds a cost (in terms of maintenance and in terms of users needing to make a choice), we'll consider it!

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