[Ada] Do not give "bad indentation" error inside a declare_expression
authorBob Duff <duff@adacore.com>
Thu, 16 Apr 2020 15:19:48 +0000 (11:19 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 17 Jun 2020 08:14:17 +0000 (04:14 -0400)
commitda901811dc478d45e7dc1028dce0bda8abbbee65
tree0cd732316e96ad5c35f111fd3c6f36d9bceea5a7
parent831aff1d8be79fda3ec3172fdbcbbec3c8be319d
[Ada] Do not give "bad indentation" error inside a declare_expression

2020-06-17  Bob Duff  <duff@adacore.com>

gcc/ada/

* par.adb (P_Basic_Declarative_Items): Update comment about
Declare_Expression.
* par-ch3.adb (P_Declarative_Items): Pass in Declare_Expression
flag, and if True, skip the call to Style.Check_Indentation.
* par-ch4.adb (P_Declare_Expression): Fix incorrect comment.
gcc/ada/par-ch3.adb
gcc/ada/par-ch4.adb
gcc/ada/par.adb