]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Improve test for unprocessed preprocessor directives
authorSteve Baird <baird@adacore.com>
Thu, 14 Mar 2024 00:46:56 +0000 (17:46 -0700)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 17 May 2024 08:21:06 +0000 (10:21 +0200)
commit15b5a95d36a3c8cc35189aa951bdcdbf59ad4160
tree0fa1309630b889aa7abbf00fe9e77405186b9c9c
parent22928da141a8bbee9994fbae00c595877ed060ad
ada: Improve test for unprocessed preprocessor directives

Preprocessor directives are case insensitive and may have spaces or tabs
between the '#' and the keyword. When checking for the error case of
unprocessed preprocessor directives, take these rules into account.

gcc/ada/

* scng.adb (scan): When checking for an unprocessed preprocessor
directive, take into account the preprocessor's rules about case
insensitivity and about white space between the '#' and the
keyword.
gcc/ada/scng.adb