C++, fix id generation of var/member declarations.

Namespaces not in the declaration are now properly included in the id.
Fixes sphinx-doc/sphinx#2722.
This commit is contained in:
Jakob Lykke Andersen committed 2016-06-29 09:02:35 +02:00
1 parent e134dc6f57
commit 68a32a2bff
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -31,6 +31,7 @@ Bugs fixed
* #2479: `sphinx.ext.viewcode` uses python2 highlighter by default
* #2700: HtmlHelp builder has hard coded index.html
* latex, since 1.4.4 inline literal text is followed by spurious space
* #2722: C++, fix id generation for var/member declarations to include namespaces.
Release 1.4.4 (released Jun 12, 2016)
+1 -1
View File
@@ -1977,7 +1977,7 @@ class ASTTypeWithInit(ASTBase):
def get_id_v2(self, objectType=None, symbol=None):
if objectType == 'member':
return symbol.declaration.name.get_id_v2()
return symbol.get_full_nested_name().get_id_v2()
else:
return self.type.get_id_v2()