[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [pykde5/srhaque-new-sip-generator] sip_generation: Support CursorKind.USING_DECLARATION.
From: Shaheed Haque <srhaque () theiet ! org>
Date: 2016-03-31 21:38:23
Message-ID: E1alkIJ-0008Pp-6A () scm ! kde ! org
[Download RAW message or body]
Git commit 820bfc8a0a96459d3085f1509116e4d3d309af24 by Shaheed Haque.
Committed on 31/03/2016 at 21:28.
Pushed by shaheed into branch 'srhaque-new-sip-generator'.
Support CursorKind.USING_DECLARATION.
M +2 -1 sip_generation/generator.py
http://commits.kde.org/pykde5/820bfc8a0a96459d3085f1509116e4d3d309af24
diff --git a/sip_generation/generator.py b/sip_generation/generator.py
index 95116ea..3f91f36 100755
--- a/sip_generation/generator.py
+++ b/sip_generation/generator.py
@@ -246,11 +246,12 @@ class Generator(object):
elif member.kind in [CursorKind.NAMESPACE, CursorKind.CLASS_DECL, \
CursorKind.CLASS_TEMPLATE, CursorKind.STRUCT_DECL,
CursorKind.CLASS_TEMPLATE_PARTIAL_SPECIALIZATION]:
decl = self._container_get(member, level + 1, h_file)
- elif member.kind in TEMPLATE_KINDS:
+ elif member.kind in TEMPLATE_KINDS + [CursorKind.USING_DECLARATION]:
#
# Ignore:
#
# TEMPLATE_KINDS: Template type parameter.
+ # CursorKind.USING_DECLARATION: Using? Pah!
#
pass
else:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic