diff options
author | Bob Duff <duff@adacore.com> | 2021-11-05 07:54:33 -0400 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-11-10 08:57:42 +0000 |
commit | 0e988162f6e9cbb9bea998b4f1febda199769692 (patch) | |
tree | 12e58aca9976de7fb726a4991b9c94c21bf273e9 /gcc/ada/gcc-interface/decl.c | |
parent | 76a71469f3ea7a6cb9257cec9a34a8c8687f3d15 (diff) | |
download | gcc-0e988162f6e9cbb9bea998b4f1febda199769692.zip gcc-0e988162f6e9cbb9bea998b4f1febda199769692.tar.gz gcc-0e988162f6e9cbb9bea998b4f1febda199769692.tar.bz2 |
[Ada] Warn for bidirectional characters
gcc/ada/
* scng.adb (Check_Bidi): New procedure to give warning. Note
that this is called only for non-ASCII characters, so should not
be an efficiency issue.
(Slit): Call Check_Bidi for wide characters in string_literals.
(Minus_Case): Call Check_Bidi for wide characters in comments.
(Char_Literal_Case): Call Check_Bidi for wide characters in
character_literals. Move Accumulate_Checksum down, because
otherwise, if Err is True, the Code is uninitialized.
* errout.ads: Make the obsolete nature of "Insertion character
?" more prominent; one should not have to read several
paragraphs before finding out that it's obsolete.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
0 files changed, 0 insertions, 0 deletions