C++, properly look up constructors.

Fixes sphinx-doc/sphinx#2666.
This commit is contained in:
Jakob Lykke Andersen
2016-06-14 15:17:45 +09:00
parent 49957210d5
commit 2d20e337b3
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@ Bugs fixed
* #2639: Sphinx now bundles iftex.sty
* Failed to build PDF with framed.sty 0.95
* Sphinx now bundles needspace.sty
* #2666: C++, properly look up nested names involving constructors.
Release 1.4.3 (released Jun 5, 2016)
+5
View File
@@ -2660,6 +2660,10 @@ class Symbol(object):
if symbol is None:
# TODO: maybe search without template args
return None
# We have now matched part of a nested name, and need to match more
# so even if we should matchSelf before, we definitely shouldn't
# even more. (see also issue #2666)
matchSelf = False
parentSymbol = symbol
assert False # should have returned in the loop
@@ -4114,6 +4118,7 @@ class CPPDomain(Domain):
matchSelf=True)
if s is None or s.declaration is None:
return None, None
declaration = s.declaration
fullNestedName = s.get_full_nested_name()
name = text_type(fullNestedName).lstrip(':')