[Ada] Refactor repeated call to Next when pretty-printing if-expressions
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 8 Jan 2021 12:07:30 +0000 (13:07 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 5 May 2021 08:18:57 +0000 (04:18 -0400)
commit5e54a5cff4a7e3bd977c15849e431563eecd67ae
tree287b057d88efd81a355f45c1e9b07761ba9c21c3
parentaf4e4d35f0b84d7c2f57a7b682a09116e9911142
[Ada] Refactor repeated call to Next when pretty-printing if-expressions

gcc/ada/

* pprint.adb (Expr_Name): Introduce local constants to make the
code more readable and avoid repeated calls to Next to reach the
ELSE part of an if-expression.
gcc/ada/pprint.adb