Skip to content

Commit b175e4d

Browse files
committed
Match.TypeName: explain why recursive is false by default
TN: Q803-008
1 parent 75a60c6 commit b175e4d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

gnatdbg/generics.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,13 @@ def __init__(self, pattern=None, name=None, suffix=None,
145145
:param str|None suffix: If provided, reject any type whose name
146146
does not end with `suffix`.
147147
148-
:param bool recursive: If true, consider integer basis types or
149-
the target type of typedefs for matching in addition to the
150-
original type.
148+
:param bool recursive: If true, consider integer basis types (for
149+
integer subrange types) or the target type of typedefs for
150+
matching in addition to the original type.
151+
152+
This behavior can be surprising: for instance typedef layers
153+
are used to distinguish unconstrained arrays from accesses to
154+
these, so this is disabled by default.
151155
"""
152156
self.type_pattern = pattern
153157
self.name = name

0 commit comments

Comments
 (0)