Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/pygccxml/parser/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ def __read_calldef(self, calldef, attrs, is_declaration):
if is_declaration:
self.__calldefs.append(calldef)
calldef.name = attrs.get(XML_AN_NAME, '')
calldef.has_extern = attrs.get(XML_AN_EXTERN, False)
calldef.has_inline = bool(attrs.get(XML_AN_INLINE, "") == "1")
calldef.has_extern = bool(attrs.get(XML_AN_EXTERN, False))
calldef.has_inline = bool(attrs.get(XML_AN_INLINE, False))
throw_stmt = attrs.get(XML_AN_THROW)
if None is throw_stmt:
calldef.does_throw = True
Expand All @@ -593,9 +593,9 @@ def __read_calldef(self, calldef, attrs, is_declaration):

def __read_member_function(self, calldef, attrs, is_declaration):
self.__read_calldef(calldef, attrs, is_declaration)
calldef.has_const = attrs.get(XML_AN_CONST, False)
calldef.has_const = bool(attrs.get(XML_AN_CONST, False))
if is_declaration:
calldef.has_static = attrs.get(XML_AN_STATIC, False)
calldef.has_static = bool(attrs.get(XML_AN_STATIC, False))
if XML_AN_PURE_VIRTUAL in attrs:
calldef.virtuality = declarations.VIRTUALITY_TYPES.PURE_VIRTUAL
elif XML_AN_VIRTUAL in attrs:
Expand Down
Loading