def __init__(self, pattern=None, name=None, suffix=None,
recursive=False, match_pretty_name=True):
"""
:param Matcher.BasePattern|None pattern: If provided, reject any
type that does not match `pattern`.
:param str|re.RegexObject|None name: If it's a string, reject any
type whose name is different. If it's a regular expression
object, reject any type whose name isn't matched by it. The
regular expression must match the whole name.
:param str|None suffix: If provided, reject any type whose name
does not end with `suffix`.
:param bool recursive: If true, consider integer basis types (for
integer subrange types) or the target type of typedefs for
matching in addition to the original type.
This behavior can be surprising: for instance typedef layers
are used to distinguish unconstrained arrays from accesses to
these, so this is disabled by default.
:param bool match_pretty_name: If True, match on the pretty GDB
type name (`str(gdb_type)`, for instance: "foo.bar"),
otherwise, use the raw name (`gdb_type.name`, for instance:
"foo__bar___Xb").
"""
self.type_pattern = pattern
self.name = name
self.suffix = suffix
self.recursive = recursive
self.match_pretty_name = match_pretty_name
评论列表
文章目录