mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
C++, code cleanup.
This commit is contained in:
parent
89c3dd81c3
commit
45a8169184
@ -871,6 +871,7 @@ class ASTTemplateArgs(ASTBase):
|
|||||||
a.describe_signature(signode, 'markType', env, symbol=symbol)
|
a.describe_signature(signode, 'markType', env, symbol=symbol)
|
||||||
signode += nodes.Text('>')
|
signode += nodes.Text('>')
|
||||||
|
|
||||||
|
|
||||||
class ASTNestedNameElement(ASTBase):
|
class ASTNestedNameElement(ASTBase):
|
||||||
def __init__(self, identifier, templateArgs):
|
def __init__(self, identifier, templateArgs):
|
||||||
self.identifier = identifier
|
self.identifier = identifier
|
||||||
@ -986,6 +987,7 @@ class ASTNestedName(ASTBase):
|
|||||||
else:
|
else:
|
||||||
raise Exception('Unknown description mode: %s' % mode)
|
raise Exception('Unknown description mode: %s' % mode)
|
||||||
|
|
||||||
|
|
||||||
class ASTTrailingTypeSpecFundamental(ASTBase):
|
class ASTTrailingTypeSpecFundamental(ASTBase):
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
self.name = name
|
self.name = name
|
||||||
@ -2105,7 +2107,7 @@ class Symbol(object):
|
|||||||
|
|
||||||
def get_full_nested_name(self):
|
def get_full_nested_name(self):
|
||||||
names = []
|
names = []
|
||||||
for nne, _ in self.get_lookup_key():
|
for nne, templateParams in self.get_lookup_key():
|
||||||
names.append(nne)
|
names.append(nne)
|
||||||
return ASTNestedName(names, rooted=False)
|
return ASTNestedName(names, rooted=False)
|
||||||
|
|
||||||
@ -3239,7 +3241,7 @@ class CPPObject(ObjectDescription):
|
|||||||
if s is not None:
|
if s is not None:
|
||||||
# something is already declared with that name
|
# something is already declared with that name
|
||||||
return
|
return
|
||||||
_ = Symbol(parent=targetSymbol, identifier=symbol.identifier,
|
Symbol(parent=targetSymbol, identifier=symbol.identifier,
|
||||||
templateParams=None, templateArgs=None,
|
templateParams=None, templateArgs=None,
|
||||||
declaration=symbol.declaration.clone())
|
declaration=symbol.declaration.clone())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user