mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
C++, don't accidentally deepcopy all domain data.
See sphinx-doc/sphinx#2145.
This commit is contained in:
parent
17e3845704
commit
eaab538d00
@ -2016,6 +2016,15 @@ class ASTDeclaration(ASTBase):
|
|||||||
# set by CPPObject._add_enumerator_to_parent
|
# set by CPPObject._add_enumerator_to_parent
|
||||||
self.enumeratorScopedSymbol = None
|
self.enumeratorScopedSymbol = None
|
||||||
|
|
||||||
|
def clone(self):
|
||||||
|
if self.templatePrefix:
|
||||||
|
templatePrefixClone = self.templatePrefix.clone()
|
||||||
|
else:
|
||||||
|
templatePrefixClone = None
|
||||||
|
return ASTDeclaration(self.objectType, self.visibility,
|
||||||
|
templatePrefixClone,
|
||||||
|
self.declaration.clone())
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
return self.declaration.name
|
return self.declaration.name
|
||||||
|
Loading…
Reference in New Issue
Block a user