Commit 2558db6f by Arnaud Charlet

[multiple changes]

2009-11-30  Vincent Celier  <celier@adacore.com>

	* osint.adb (Executable_Name): Test the name instead of the name buffer
	to check if there is a dot in the given name.

2009-11-30  Sergey Rybin  <rybin@adacore.com>

	* gnat_ugn.texi: Update gnatcheck doc.

From-SVN: r154796
parent b8dfbe1e
2009-11-30 Vincent Celier <celier@adacore.com>
* osint.adb (Executable_Name): Test the name instead of the name buffer
to check if there is a dot in the given name.
2009-11-30 Sergey Rybin <rybin@adacore.com>
* gnat_ugn.texi: Update gnatcheck doc.
2009-11-30 Robert Dewar <dewar@adacore.com> 2009-11-30 Robert Dewar <dewar@adacore.com>
* sem_ch3.adb, sem_disp.adb, usage.adb: Minor reformatting * sem_ch3.adb, sem_disp.adb, usage.adb: Minor reformatting
......
...@@ -20874,14 +20874,13 @@ lines and end-of-line comments). There can be several rule options on a ...@@ -20874,14 +20874,13 @@ lines and end-of-line comments). There can be several rule options on a
single line (separated by a space). single line (separated by a space).
A coding standard file may reference other coding standard files by including A coding standard file may reference other coding standard files by including
other @option{-from=@var{rule_option_filename}} more @option{-from=@var{rule_option_filename}}
options, each such option being replaced with the content of the options, each such option being replaced with the content of the
corresponding coding standard file during processing. In case a corresponding coding standard file during processing. In case a
cycle is detected (that is, @file{@var{rule_file_1}} reads rule options cycle is detected (that is, @file{@var{rule_file_1}} reads rule options
from @file{@var{rule_file_2}}, and @file{@var{rule_file_2}} reads from @file{@var{rule_file_2}}, and @file{@var{rule_file_2}} reads
(directly or indirectly) rule options from @file{@var{rule_file_1}}), (directly or indirectly) rule options from @file{@var{rule_file_1}}),
the processing of coding standard files is interrupted and a part of their processing fails with an error message.
content is ignored.
@node Adding the Results of Compiler Checks to gnatcheck Output @node Adding the Results of Compiler Checks to gnatcheck Output
...@@ -893,13 +893,13 @@ package body Osint is ...@@ -893,13 +893,13 @@ package body Osint is
Add_Suffix := True; Add_Suffix := True;
if Only_If_No_Suffix then if Only_If_No_Suffix then
for J in reverse 1 .. Name_Len loop for J in reverse Canonical_Name'Range loop
if Name_Buffer (J) = '.' then if Canonical_Name (J) = '.' then
Add_Suffix := False; Add_Suffix := False;
exit; exit;
elsif Name_Buffer (J) = '/' or else elsif Canonical_Name (J) = '/' or else
Name_Buffer (J) = Directory_Separator Canonical_Name (J) = Directory_Separator
then then
exit; exit;
end if; end if;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment