mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
Merge pull request #21781 from VadimLevin:dev/vlevin/skip-inline-namespaces
This commit is contained in:
commit
e4abf6e723
@ -1002,7 +1002,7 @@ class CppHeaderParser(object):
|
||||
docstring = ""
|
||||
if stmt_type == "namespace":
|
||||
chunks = [block[1] for block in self.block_stack if block[0] == 'namespace'] + [name]
|
||||
self.namespaces.add('.'.join(chunks))
|
||||
self.namespaces.add('.'.join(filter(lambda c: len(c)> 0, chunks)))
|
||||
else:
|
||||
stmt_type, name, parse_flag = "block", "", False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user