aboutsummaryrefslogtreecommitdiff
path: root/find-modules
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2017-01-15 00:56:24 +0000
committerStephen Kelly <steveire@gmail.com>2017-01-15 11:19:31 +0000
commitdec469837d646351bd4288fa3390682f96b3e37c (patch)
treeda4ceedf2a4d2ea6f61ac1043fdad48d37536654 /find-modules
parentc81d97caa5be62041c67265fffe78ab227150661 (diff)
downloadextra-cmake-modules-dec469837d646351bd4288fa3390682f96b3e37c.tar.gz
extra-cmake-modules-dec469837d646351bd4288fa3390682f96b3e37c.tar.bz2
Bindings: Skip implementations of inline methods while parsing
Don't process the same function name twice.
Diffstat (limited to 'find-modules')
-rw-r--r--find-modules/sip_generator.py6
1 files changed, 6 insertions, 0 deletions
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):
"""