mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 08:25:01 -05:00
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:
1 parent
e134dc6f57
commit
68a32a2bff
2 files changed
+2
-1
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user