Commit d1ec4768 by Robert Dewar Committed by Arnaud Charlet

sem_ch12.adb, [...]: Minor reformatting.

2013-04-25  Robert Dewar  <dewar@adacore.com>

	* sem_ch12.adb, sem_util.adb, sem_ch4.adb: Minor reformatting.

From-SVN: r198289
parent 57081559
2013-04-25 Robert Dewar <dewar@adacore.com>
* sem_ch12.adb, sem_util.adb, sem_ch4.adb: Minor reformatting.
2013-04-25 Hristian Kirtchev <kirtchev@adacore.com> 2013-04-25 Hristian Kirtchev <kirtchev@adacore.com>
* sem_ch4.adb (Analyze_Quantified_Expression): * sem_ch4.adb (Analyze_Quantified_Expression):
......
...@@ -3512,6 +3512,7 @@ package body Sem_Ch4 is ...@@ -3512,6 +3512,7 @@ package body Sem_Ch4 is
function Referenced (Id : Entity_Id; Expr : Node_Id) return Boolean; function Referenced (Id : Entity_Id; Expr : Node_Id) return Boolean;
-- Determine whether entity Id is referenced within expression Expr -- Determine whether entity Id is referenced within expression Expr
-- This should be moved to sem_util ???
-------------------- --------------------
-- Is_Empty_Range -- -- Is_Empty_Range --
...@@ -3575,6 +3576,10 @@ package body Sem_Ch4 is ...@@ -3575,6 +3576,10 @@ package body Sem_Ch4 is
-- Determine whether node N denotes a reference to Id. If this is the -- Determine whether node N denotes a reference to Id. If this is the
-- case, set global flag Seen to True and stop the traversal. -- case, set global flag Seen to True and stop the traversal.
------------------
-- Is_Reference --
------------------
function Is_Reference (N : Node_Id) return Traverse_Result is function Is_Reference (N : Node_Id) return Traverse_Result is
begin begin
if Is_Entity_Name (N) if Is_Entity_Name (N)
...@@ -3594,7 +3599,6 @@ package body Sem_Ch4 is ...@@ -3594,7 +3599,6 @@ package body Sem_Ch4 is
begin begin
Inspect_Expression (Expr); Inspect_Expression (Expr);
return Seen; return Seen;
end Referenced; end Referenced;
...@@ -3662,10 +3666,10 @@ package body Sem_Ch4 is ...@@ -3662,10 +3666,10 @@ package body Sem_Ch4 is
end if; end if;
-- Diagnose a possible misuse of the "some" existential quantifier. When -- Diagnose a possible misuse of the "some" existential quantifier. When
-- we have a quantified expression of the form -- we have a quantified expression of the form:
--
-- for some X => (if P then Q [else True]) -- for some X => (if P then Q [else True])
--
-- the if expression will not hold and render the quantified expression -- the if expression will not hold and render the quantified expression
-- trivially True. -- trivially True.
......
...@@ -2150,9 +2150,8 @@ package body Sem_Util is ...@@ -2150,9 +2150,8 @@ package body Sem_Util is
States : constant Elist_Id := Abstract_States (Pkg); States : constant Elist_Id := Abstract_States (Pkg);
begin begin
-- Check the first available state of the related package. A null -- Check first available state of related package. A null abstract
-- abstract state always appears as the sole element of the state -- state always appears as the sole element of the state list.
-- list.
return return
Present (States) Present (States)
......
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