prefer aspects over representation clauses#72
prefer aspects over representation clauses#72pjljvandelaar wants to merge 2 commits intoAdaCore:masterfrom
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. |
t-14
left a comment
There was a problem hiding this comment.
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
