Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Jan 17, 2018
1 parent 1bc8eb5 commit d2949ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion bin/conda/python-autowig/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ test:
commands:
- nosetests test -x -s -v -A "level <= {{ environ.get('TEST_LEVEL', 1) }} and linux" [linux]
- nosetests test -x -s -v -A "level <= {{ environ.get('TEST_LEVEL', 1) }} and osx" [osx]
- nosetests test -x -s -v -A "level <= {{ environ.get('TEST_LEVEL', 1) }} and win" [win]
- nosetests test -x -s -v -A "level <= {{ environ.get('TEST_LEVEL', 1) }} and win" [win]
22 changes: 7 additions & 15 deletions src/py/autowig/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,7 @@ def bootstrap(asg, flags, **kwargs):
black.add(dcl._node)
except:
pass
if isinstance(node, ClassTemplateSpecializationProxy):
if not node.is_complete:
gray.add(node._node)
elif not node.is_complete and node.access in ['none', 'public']:
if isinstance(node, ClassTemplateSpecializationProxy) and not node.is_complete:
gray.add(node._node)
gray = list(gray)
for gray in [gray[index:index+maximum] for index in xrange(0, len(gray), maximum)]:
Expand All @@ -272,19 +269,14 @@ def bootstrap(asg, flags, **kwargs):
header.close()
asg = parser(asg, [header.name], flags +["-Wno-unused-value", "-ferror-limit=0"], bootstrapping=True, **kwargs)
os.unlink(header.name)
asg._syntax_edges[asg[header.name].parent.globalname].remove(header.name)
asg._nodes.pop(header.name)
if header.name in asg:
asg._syntax_edges[asg[header.name].parent.globalname].remove(header.name)
asg._nodes.pop(header.name)
asg._include_edges.pop(header.name, None)
asg._include_edges = {key : value for key, value in asg._include_edges.iteritems() if not value == header.name}
for node in asg.nodes('::main::.*'):
asg._syntax_edges['::'].remove(node._node)
asg._nodes.pop(node._node)
asg._include_edges.pop(node._node, None)
asg._syntax_edges.pop(node._node, None)
asg._base_edges.pop(node._node, None)
asg._type_edges.pop(node._node, None)
asg._parameter_edges.pop(node._node, None)
asg._specialization_edges.pop(node._node, None)
for node in asg._nodes.keys():
if '_header' in asg._nodes[node] and asg._nodes[node]['_header'] == header.name:
asg._nodes[node].pop('_header')
__index += 1

def update_overload(asg, overload='none', **kwargs):
Expand Down

0 comments on commit d2949ae

Please sign in to comment.