From 5dae27865244c0ff1ade47fcdd579457a394d6fc Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sat, 7 Nov 2020 18:25:48 +0000 Subject: [PATCH] bindings: "inline namespace" --- modules/python/src2/hdr_parser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/python/src2/hdr_parser.py b/modules/python/src2/hdr_parser.py index eba7000d47..d8b04b43ce 100755 --- a/modules/python/src2/hdr_parser.py +++ b/modules/python/src2/hdr_parser.py @@ -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"