]> gcc.gnu.org Git - gcc.git/commit
ada: Ignore accessibility actuals in expression pretty-printer
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 13 Feb 2023 21:49:39 +0000 (22:49 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 23 May 2023 07:50:59 +0000 (09:50 +0200)
commite32c1944bbad9e3dad86a3f1a010fab671953130
tree72d5f106f5727ab4cad1c292169bffff9d4ac416
parenteceeb07b21483a1f150cba8d65ef9a762442d2d9
ada: Ignore accessibility actuals in expression pretty-printer

Extra actual parameters for accessibility checks are confusing for the
expression pretty-printer that is used by CodePeer. It seems that nodes
created for the accessibility checks should use the Sloc of the source
expression of accessibility checks, not the target. However, this is
problematic to achieve with the current implementation of accessibility
checks, so with this patch we will simply ignore the accessibility
actuals when computing Slocs for expression pretty-printing.

gcc/ada/

* errout.adb (First_And_Last_Nodes): Ignore accessibility parameters.
gcc/ada/errout.adb
This page took 0.049076 seconds and 5 git commands to generate.