Skip to content

Commit da346a5

Browse files
committed
add access property to 'using' CppVariable
1 parent 72d5b01 commit da346a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CppHeaderParser/CppHeaderParser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,7 @@ class CppVariable(_CppVariable):
12041204
* ``extern`` - True if its an extern, False if not
12051205
* ``parent`` - If not None, either the class this is a property of, or the
12061206
method this variable is a parameter in
1207+
* ``access`` - Anything in supportedAccessSpecifier
12071208
"""
12081209

12091210
Vars = []
@@ -1320,6 +1321,7 @@ def __str__(self):
13201321
"desc",
13211322
"line_number",
13221323
"extern",
1324+
"access",
13231325
]
13241326
cpy = dict((k, v) for (k, v) in list(self.items()) if k in keys_white_list)
13251327
if "array_size" in self:
@@ -3382,6 +3384,7 @@ def _evaluate_stack(self, token=None):
33823384
else:
33833385
atype["raw_type"] = ns + atype["type"]
33843386

3387+
atype["access"] = self.curAccessSpecifier
33853388
if self.curClass:
33863389
klass = self.classes[self.curClass]
33873390
klass["using"][alias] = atype

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy