-
Notifications
You must be signed in to change notification settings - Fork 31
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
prefer aspects over representation clauses #72
base: master
Are you sure you want to change the base?
prefer aspects over representation clauses #72
Conversation
In the past, TNO ESI has signed the Contributor License Agreement, so I don't understand why that isn't working anymore. Don't understand why appveyor crashes. Did I cause that? |
Can't say what's your past CLA status, can you just sign it again please? Don't worry about the failing CI jobs, they are broken and due for a cleanup. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the code reformatting which is problematic and anyway not an objective of this PR.
When aspects are combined (as is the case in this PR), Limiting pretty printing to the rewritten code only is impossible with gnatpp:
Yet many AST nodes are only a part of a line. When code adheres to the pretty print settings in the project file, pretty printing a slightly larger section is no problem. So code that is pretty printed is violating your own pretty print settings! P.S. If you update your pretty print settings, I can rerun the analysis and rewritting. P.S.2. Since it is a single file: I propose to solve it here manually: just remove the sections you don't want to change from the patch file. |
Not sure I follow. Do you really insist the following leaves the code better than you found it (or has anything to do with aspects vs replcauses)?
|
I agree you can agree about whether it is an improvement, |
Despite the word "pretty" in the name, gnatpp is really like |
Dear Gnatcoll Developers,
The code currently mixes aspects and representation clauses.
For readability only aspects are prefer.
This pull request fixes the issues.
Greetings,
Pierre
P.S. Not all code adheres to the setting of the pretty printer in project file, hence some changes are due to pretty printing.
Problem detected and solved by Rejuvenation-Ada crate