diff options
author | Yves Orton <demerphq@gmail.com> | 2023-03-28 21:57:22 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-04-05 15:22:55 +0800 |
commit | 67d37c55ddffebbcbf4847408106334b9ad9a6bc (patch) | |
tree | 3ec4fed15f1eae09374bbfc4d97f27ced64155fd /Porting | |
parent | 0398b69bfddc8738a4788f056a79ba9e4d44fcfb (diff) | |
download | perl-67d37c55ddffebbcbf4847408106334b9ad9a6bc.tar.gz |
regen/HeaderParser.pm - improved expression formatting and wrapping
Karl complained about some of the wrapping logic we use for expressions.
This tweaks the rules in a number of different ways in an attempt to
produce more legible expressions. For instance if we have a complex
expression with different parenthesized sub expressions, then try to put
each sub expression on its own line. A previous patch ensures that we
put shorter sub expressions first, and this patch builds on that to put
each sub expression on its own line.
We also use different logic to wrap the expressions, with the end result
that each line should have the same number of defined() operations on it
(with the exception of the last). We also try harder to line up
logical operators and defined() functions.
Diffstat (limited to 'Porting')
0 files changed, 0 insertions, 0 deletions