[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [pykde5/srhaque-new-sip-generator] sip_generation: Refine the visibility handling to catch more case
From:       Shaheed Haque <srhaque () theiet ! org>
Date:       2016-03-31 23:52:03
Message-ID: E1almNf-0003el-L5 () scm ! kde ! org
[Download RAW message or body]

Git commit 1c6cfe94c3984a69e20e36e67d9f3a07c512484a by Shaheed Haque.
Committed on 31/03/2016 at 23:50.
Pushed by shaheed into branch 'srhaque-new-sip-generator'.

Refine the visibility handling to catch more cases (and remove
some bogus patterns).

M  +3    -3    sip_generation/generator.py

http://commits.kde.org/pykde5/1c6cfe94c3984a69e20e36e67d9f3a07c512484a

diff --git a/sip_generation/generator.py b/sip_generation/generator.py
index 3dbb676..662f54f 100755
--- a/sip_generation/generator.py
+++ b/sip_generation/generator.py
@@ -179,9 +179,9 @@ class Generator(object):
         return body, header, sip_file
 
     CONTAINER_SKIPPABLE_UNEXPOSED_DECL = re.compile("(_DECLARE_PRIVATE|friend)\W")
-    CONTAINER_IS_VISIBLE_BY_ATTR = re.compile("_EXPORT|default")
-    FN_IS_VISIBLE_BY_ATTR = re.compile("_EXPORT|default")
-    VAR_IS_VISIBLE_BY_ATTR = re.compile("_EXPORT|default")
+    CONTAINER_IS_VISIBLE_BY_ATTR = re.compile("_EXPORT")
+    FN_IS_VISIBLE_BY_ATTR = re.compile("_EXPORT|Q_REQUIRED_RESULT")
+    VAR_IS_VISIBLE_BY_ATTR = re.compile("_EXPORT")
     TYPEDEF_IS_VISIBLE_BY_ATTR = re.compile("_EXPORT")
 
     def _container_get(self, container, level, h_file):

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic