From 522d8eb648bcf0f58d17d421e4f5967b251b0b70 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Sun, 31 Jul 2022 14:32:57 -0400 Subject: fix parse type documentation --- python/platform.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'python/platform.py') diff --git a/python/platform.py b/python/platform.py index 05cbaabf..71410d84 100644 --- a/python/platform.py +++ b/python/platform.py @@ -405,7 +405,8 @@ class Platform(metaclass=_PlatformMetaClass): ): """ ``parse_types_from_source`` parses the source string and any needed headers searching for them in - the optional list of directories provided in ``include_dirs``. + the optional list of directories provided in ``include_dirs``. Note that this API does not allow + the source to rely on existing types that only exist in a specific view. Use :py:class:`BinaryView.parse_type_string` instead. :param str source: source string to be parsed :param str filename: optional source filename @@ -459,7 +460,8 @@ class Platform(metaclass=_PlatformMetaClass): def parse_types_from_source_file(self, filename, include_dirs: Optional[List[str]] = None, auto_type_source=None): """ ``parse_types_from_source_file`` parses the source file ``filename`` and any needed headers searching for them in - the optional list of directories provided in ``include_dirs``. + the optional list of directories provided in ``include_dirs``. Note that this API does not allow + the source to rely on existing types that only exist in a specific view. Use :py:class:`BinaryView.parse_type_string` instead. :param str filename: filename of file to be parsed :param include_dirs: optional list of string filename include directories @@ -511,4 +513,4 @@ class Platform(metaclass=_PlatformMetaClass): @property def arch(self): - return self._arch \ No newline at end of file + return self._arch -- cgit v1.3.1