aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.cc
diff options
context:
space:
mode:
authorMarc Poulhiès <poulhies@adacore.com>2022-01-28 16:55:43 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-12 12:38:34 +0000
commit7a4892d2279066f5892a2b6a8c511689631d8f09 (patch)
tree6becd5efcffef1731fcb790743d195b61624920b /gcc/ada/gcc-interface/utils.cc
parentb9cff88ca79664ade8bd1c870d01b56f8599afa4 (diff)
downloadgcc-7a4892d2279066f5892a2b6a8c511689631d8f09.zip
gcc-7a4892d2279066f5892a2b6a8c511689631d8f09.tar.gz
gcc-7a4892d2279066f5892a2b6a8c511689631d8f09.tar.bz2
[Ada] Fix style checking rule for square brackets in Ada 2022 and above
The square bracket syntax introduced in Ada 2022 was incorrectly handled by the style checker and incorrect spacing was enforced. The issue was in part caused by the wide character syntax (support removed starting from Ada 2022) that treats the square bracket as a valid identifier character. gcc/ada/ * csets.adb (Initialize): Only treat square bracket as valid identifier character for Ada versions prior to Ada 2022. * style.ads (Check_Left_Paren): Rename... (Check_Left_Paren_Square_Bracket): ...to this. * styleg.adb (Check_Left_Bracket): Rename... (Check_Left_Paren_Square_Bracket): ...to this. * styleg.ads (Check_Left_Paren): Rename... (Check_Left_Paren_Square_Bracket): ...to this. * scng.adb (Scan): Add check for spacing around left square bracket and use new name for Check_Left_Paren_Square_Bracket. * libgnat/a-szmzco.ads (Control_Ranges, Graphic_Ranges) (Letter_Ranges, Decimal_Digit_Ranges, ISO_646_Ranges) (Character_Ranges): Fix style (remove extra space). * libgnat/a-swmwco.ads (Control_Ranges, Graphic_Ranges) (Letter_Ranges, Decimal_Digit_Ranges, ISO_646_Ranges) (Character_Ranges): Likewise. * opt.adb (Set_Config_Switches): Remove [ from Identifier_Char set.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.cc')
0 files changed, 0 insertions, 0 deletions