From dec469837d646351bd4288fa3390682f96b3e37c Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 15 Jan 2017 00:56:24 +0000 Subject: Bindings: Skip implementations of inline methods while parsing Don't process the same function name twice. --- find-modules/sip_generator.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'find-modules/sip_generator.py') diff --git a/find-modules/sip_generator.py b/find-modules/sip_generator.py index 7df9de3d..8845c81e 100644 --- a/find-modules/sip_generator.py +++ b/find-modules/sip_generator.py @@ -434,6 +434,12 @@ class SipGenerator(object): :param level: Recursion level controls indentation. :return: A string. """ + if container.kind == CursorKind.TRANSLATION_UNIT and \ + (function.semantic_parent.kind == CursorKind.CLASS_DECL or + function.semantic_parent.kind == CursorKind.STRUCT_DECL) and \ + function.is_definition(): + # Skip inline methods + return def skippable_attribute(member, text): """ -- cgit v1.2.1