Merge pull request #18774 from alalek:bindings_namespace_inline

This commit is contained in:
Alexander Alekhin 2020-11-12 12:23:37 +00:00
commit ed3591ed1f

View File

@ -658,6 +658,10 @@ class CppHeaderParser(object):
stack_top = self.block_stack[-1]
context = stack_top[self.BLOCK_TYPE]
if stmt.startswith('inline namespace'):
# emulate anonymous namespace
return "namespace", "", True, None
stmt_type = ""
if end_token == "{":
stmt_type = "block"