Skip to content

Commit

Permalink
Update libclang_parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique authored Aug 10, 2016
1 parent e1ebb72 commit f491eab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/py/autowig/libclang_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from path import path
from ConfigParser import ConfigParser
from clang.cindex import Config, conf, Cursor, Index, TranslationUnit, CursorKind, Type, TypeKind
from ConfigParser import ConfigParser
from tempfile import NamedTemporaryFile
import os
import warnings
Expand Down Expand Up @@ -256,7 +255,7 @@ def read_builtin_type(asg, btype):
specifiers = ''
return VoidTypeProxy.node, specifiers
else:
warnings.warn('\'' + str(btype.kind) + '\'', NotImplementedTypeWarning)
warnings.warn('\'' + str(btype.kind) + '\'', Warning)

def read_enum(asg, cursor, scope):
if not scope.endswith('::'):
Expand All @@ -282,7 +281,7 @@ def read_enum(asg, cursor, scope):
spelling = 'enum ' + spelling
if not spelling in asg:
asg._syntax_edges[spelling] = []
asg._nodes[spelling] = dict(proxy=EnumProxy)
asg._nodes[spelling] = dict(proxy=EnumerationProxy)
asg._syntax_edges[scope].append(spelling)
elif not asg[spelling].is_complete:
asg._syntax_edges[scope].remove(spelling)
Expand Down

0 comments on commit f491eab

Please sign in to comment.