aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-utils.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-07-08 09:27:07 +0200
committerTristan Gingold <tgingold@free.fr>2020-07-18 19:19:56 +0200
commitb4a3f85b3f5331af4f73252a8a34d0efce467c56 (patch)
tree0bd68fb8148587a43180f18006d5f77e70601cda /src/vhdl/vhdl-utils.ads
parent05507ab2016c069a195ad86be451b5b33c64df4c (diff)
downloadghdl-b4a3f85b3f5331af4f73252a8a34d0efce467c56.tar.gz
ghdl-b4a3f85b3f5331af4f73252a8a34d0efce467c56.tar.bz2
ghdl-b4a3f85b3f5331af4f73252a8a34d0efce467c56.zip
vhdl: improve support of subtype attribute.
A subtype definition does not mean anymore that the subtype is constrained. It is now defined by the subtype indication of the name.
Diffstat (limited to 'src/vhdl/vhdl-utils.ads')
-rw-r--r--src/vhdl/vhdl-utils.ads7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-utils.ads b/src/vhdl/vhdl-utils.ads
index d410a26f9..6712aa0fa 100644
--- a/src/vhdl/vhdl-utils.ads
+++ b/src/vhdl/vhdl-utils.ads
@@ -173,6 +173,13 @@ package Vhdl.Utils is
-- Return TRUE iff DEF is a fully constrained type (or subtype) definition.
function Is_Fully_Constrained_Type (Def : Iir) return Boolean;
+ -- Return True iff OBJ can be the target of an aggregate with an others
+ -- choice (cf LRM08 9.3.3.3).
+ -- Return True iff object or member of it is declared to be a fully
+ -- constrained subtype.
+ function Is_Object_Fully_Constrained (Decl : Iir) return Boolean;
+ function Is_Object_Name_Fully_Constrained (Obj : Iir) return Boolean;
+
-- Return the type definition/subtype indication of NAME if NAME denotes
-- a type or subtype name. Otherwise, return Null_Iir;
function Is_Type_Name (Name : Iir) return Iir;