Skip to content

Commit

Permalink
Remove illegal Ghost aspects
Browse files Browse the repository at this point in the history
  • Loading branch information
treiher committed May 9, 2022
1 parent b7a812d commit 6bc200c
Show file tree
Hide file tree
Showing 56 changed files with 116 additions and 332 deletions.
8 changes: 6 additions & 2 deletions rflx/generator/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,9 @@ def create_generic_read_procedure() -> UnitPart:
[Parameter(["Buffer"], const.TYPES_BYTES)],
),
TRUE,
aspects=[Ghost()],
# ISSUE: Componolit/Workarounds#48
# Ghost entities are not allowed as formal generic parameters.
# aspects=[Ghost()],
),
Pragma(
"Warnings",
Expand Down Expand Up @@ -1142,7 +1144,9 @@ def create_generic_write_procedure(message: Message) -> UnitPart:
],
),
TRUE,
aspects=[Ghost()],
# ISSUE: Componolit/Workarounds#48
# Ghost entities are not allowed as formal generic parameters.
# aspects=[Ghost()],
),
Pragma(
"Warnings",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -197,9 +195,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -194,9 +192,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -197,9 +195,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -194,9 +192,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -194,9 +192,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -205,9 +203,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -197,9 +195,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -194,9 +192,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -197,9 +195,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -194,9 +192,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -197,9 +195,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -194,9 +192,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -197,9 +195,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -194,9 +192,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -197,9 +195,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -194,9 +192,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Buffer : RFLX_Types.Bytes) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand All @@ -197,9 +195,7 @@ is
pragma Warnings (Off, "formal parameter ""*"" is not referenced");

function Always_Valid (Context_Buffer_Length : RFLX_Types.Length; Offset : RFLX_Types.Length) return Boolean is
(True)
with
Ghost;
(True);

pragma Warnings (On, "formal parameter ""*"" is not referenced");

Expand Down
Loading

0 comments on commit 6bc200c

Please sign in to comment.