aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/styleg.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2012-12-05 11:59:09 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2012-12-05 11:59:09 +0100
commita53c56136d37b424f4f6b89e903763b82c33cfb9 (patch)
tree4c0fa6b38c44a576559169d8ac21ad008797f8bd /gcc/ada/styleg.adb
parent5e29ae8259c54bdc25e82b3e71c956cde0a49a99 (diff)
downloadgcc-a53c56136d37b424f4f6b89e903763b82c33cfb9.zip
gcc-a53c56136d37b424f4f6b89e903763b82c33cfb9.tar.gz
gcc-a53c56136d37b424f4f6b89e903763b82c33cfb9.tar.bz2
[multiple changes]
2012-12-05 Ed Schonberg <schonberg@adacore.com> * exp_ch5.adb (Expand_N_Assignment_Statement): Handle properly the generation of discriminant checks when the left-hand side has a type with hidden discriminants. * sem_ch3.ads (Is_Visible_Component): Add defaulted parameter to specify the node on which component visibility is being checked. * sem_ch3.adb (Is_Visible_Component): Use new parameter to determine whether the reference comes from a type conversion to a full view of a private type with unknown discriminants. * sem_ch4.adb (Analyze_Selected_Component): Call Is_Visible_Component with added parameter. 2012-12-05 Arnaud Charlet <charlet@adacore.com> * make.adb: Minor comment update. 2012-12-05 Arnaud Charlet <charlet@adacore.com> * gnatlink.adb: Also use -x adascil in CodePeer mode when calling gcc. * exp_ch5.adb: Minor reformatting. 2012-12-05 Bob Duff <duff@adacore.com> * exp_ch4.adb: Minor comment. 2012-12-05 Bob Duff <duff@adacore.com> * par-ch4.adb: Set Paren_Count correctly for a parenthesized expression containing a conditional expression or quantified expression. * sprint.adb: Update comment. 2012-12-05 Bob Duff <duff@adacore.com> * style.adb, scans.ads, styleg.adb: Update comments. 2012-12-05 Ed Schonberg <schonberg@adacore.com> * sem_ch8.adb (Find_Selected_Component): Handle properly an expanded name whose prefix is the expanded name of an enclosing entry, that is to say a construct such as T.E.X, where T is an enclosing concurrent type and E is an enclosing entry. From-SVN: r194204
Diffstat (limited to 'gcc/ada/styleg.adb')
-rw-r--r--gcc/ada/styleg.adb27
1 files changed, 14 insertions, 13 deletions
diff --git a/gcc/ada/styleg.adb b/gcc/ada/styleg.adb
index c674394..b24c1c0 100644
--- a/gcc/ada/styleg.adb
+++ b/gcc/ada/styleg.adb
@@ -81,7 +81,8 @@ package body Styleg is
function Is_White_Space (C : Character) return Boolean;
pragma Inline (Is_White_Space);
- -- Returns True for space, HT, VT or FF, False otherwise
+ -- Returns True for space or HT, False otherwise
+ -- What about VT and FF, should they return True ???
procedure Require_Following_Space;
pragma Inline (Require_Following_Space);
@@ -97,12 +98,12 @@ package body Styleg is
-- Check_Abs_Or_Not --
----------------------
- -- In check tokens mode (-gnatyt), ABS/NOT must be followed by a space
+ -- In check token mode (-gnatyt), ABS/NOT must be followed by a space
procedure Check_Abs_Not is
begin
if Style_Check_Tokens then
- if Source (Scan_Ptr) > ' ' then
+ if Source (Scan_Ptr) > ' ' then -- ???
Error_Space_Required (Scan_Ptr);
end if;
end if;
@@ -112,7 +113,7 @@ package body Styleg is
-- Check_Apostrophe --
----------------------
- -- Do not allow space before or after apostrophe
+ -- Do not allow space before or after apostrophe -- OR AFTER???
procedure Check_Apostrophe is
begin
@@ -546,7 +547,7 @@ package body Styleg is
-- Check_Dot_Dot --
-------------------
- -- In check token mode (-gnatyt), colon must be surrounded by spaces
+ -- In check token mode (-gnatyt), ".." must be surrounded by spaces
procedure Check_Dot_Dot is
begin
@@ -630,9 +631,9 @@ package body Styleg is
-- Check_Left_Paren --
----------------------
- -- In tone check mode (-gnatyt), left paren must not be preceded by an
- -- identifier character or digit (a separating space is required) and
- -- may never be followed by a space.
+ -- In check token mode (-gnatyt), left paren must not be preceded by an
+ -- identifier character or digit (a separating space is required) and may
+ -- never be followed by a space.
procedure Check_Left_Paren is
begin
@@ -707,9 +708,9 @@ package body Styleg is
if Style_Check_DOS_Line_Terminator then
- -- Ignore EOF, since we only get called with an EOF if it is the last
- -- character in the buffer (and was therefore not in the source file),
- -- since the terminating EOF is added to stop the scan.
+ -- Ignore EOF, since we only get called with an EOF if it is the last
+ -- character in the buffer (and was therefore not in the source
+ -- file), since the terminating EOF is added to stop the scan.
if Source (Scan_Ptr) = EOF then
null;
@@ -846,7 +847,7 @@ package body Styleg is
-- Check_Right_Paren --
-----------------------
- -- In check tokens mode (-gnatyt), right paren must not be immediately
+ -- In check token mode (-gnatyt), right paren must not be immediately
-- followed by an identifier character, and must never be preceded by
-- a space unless it is the initial non-blank character on the line.
@@ -865,7 +866,7 @@ package body Styleg is
-- Check_Semicolon --
---------------------
- -- In check tokens mode (-gnatyt), semicolon does not permit a preceding
+ -- In check token mode (-gnatyt), semicolon does not permit a preceding
-- space and a following space is required.
procedure Check_Semicolon is