Commit 4169c2d2 by Arnaud Charlet

[multiple changes]

2013-10-10  Robert Dewar  <dewar@adacore.com>

	* gnat_rm.texi: Refined_Pre and Refined_Post are now allowed as
	assertion identifiers for pragma Assertion_Policy.
	* sem_prag.adb (Is_Valid_Assertion_Kind): Add Refined_Pre/Refined_Post
	* sem_ch13.adb: Minor reformatting.

2013-10-10  Pascal Obry  <obry@adacore.com>

	* prj-conf.adb: Code refactoring.

From-SVN: r203361
parent aa500b7a
2013-10-10 Robert Dewar <dewar@adacore.com>
* gnat_rm.texi: Refined_Pre and Refined_Post are now allowed as
assertion identifiers for pragma Assertion_Policy.
* sem_prag.adb (Is_Valid_Assertion_Kind): Add Refined_Pre/Refined_Post
* sem_ch13.adb: Minor reformatting.
2013-10-10 Pascal Obry <obry@adacore.com>
* prj-conf.adb: Code refactoring.
2013-10-10 Hristian Kirtchev <kirtchev@adacore.com> 2013-10-10 Hristian Kirtchev <kirtchev@adacore.com>
* einfo.adb: Remove Integrity_Level from the node usage list. * einfo.adb: Remove Integrity_Level from the node usage list.
......
...@@ -1375,7 +1375,9 @@ ID_ASSERTION_KIND ::= Assertions | ...@@ -1375,7 +1375,9 @@ ID_ASSERTION_KIND ::= Assertions |
Loop_Variant | Loop_Variant |
Postcondition | Postcondition |
Precondition | Precondition |
Predicate Predicate |
Refined_Post |
Refined_Pre |
Statement_Assertions Statement_Assertions
POLICY_IDENTIFIER ::= Check | Disable | Ignore POLICY_IDENTIFIER ::= Check | Disable | Ignore
......
...@@ -1383,9 +1383,8 @@ package body Sem_Ch13 is ...@@ -1383,9 +1383,8 @@ package body Sem_Ch13 is
pragma Assert (not Is_Disabled (Aspect)); pragma Assert (not Is_Disabled (Aspect));
-- Certan aspects allow for an optional name or expression. Do -- Certain aspects allow for an optional name or expression. Do
-- not generate a pragma with an empty argument association -- not generate a pragma with empty argument association list.
-- list.
if No (Args) or else No (Expression (First (Args))) then if No (Args) or else No (Expression (First (Args))) then
Args := No_List; Args := No_List;
......
...@@ -9127,10 +9127,10 @@ package body Sem_Prag is ...@@ -9127,10 +9127,10 @@ package body Sem_Prag is
-- Postcondition | -- Postcondition |
-- Precondition | -- Precondition |
-- Predicate | -- Predicate |
-- Refined_Post |
-- Refined_Pre |
-- Statement_Assertions -- Statement_Assertions
-- Shouldn't Refined_Pre be in this list???
-- Note: The RM_ASSERTION_KIND list is language-defined, and the -- Note: The RM_ASSERTION_KIND list is language-defined, and the
-- ID_ASSERTION_KIND list contains implementation-defined additions -- ID_ASSERTION_KIND list contains implementation-defined additions
-- recognized by GNAT. The effect is to control the behavior of -- recognized by GNAT. The effect is to control the behavior of
...@@ -19482,6 +19482,8 @@ package body Sem_Prag is ...@@ -19482,6 +19482,8 @@ package body Sem_Prag is
Name_Postcondition | Name_Postcondition |
Name_Precondition | Name_Precondition |
Name_Predicate | Name_Predicate |
Name_Refined_Post |
Name_Refined_Pre |
Name_Statement_Assertions => return True; Name_Statement_Assertions => return True;
when others => return False; when others => return False;
......
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