Merge pull request #7472 from tk0miya/fix_TypeError_in_cdomain

c domain: Fix TypeError by missing config arugment
This commit is contained in:
Takeshi KOMIYA 2020-04-14 00:49:18 +09:00 committed by GitHub
commit 775833dea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3149,7 +3149,8 @@ class CNamespaceObject(SphinxDirective):
stack = [] # type: List[Symbol]
else:
parser = DefinitionParser(self.arguments[0],
location=self.get_source_info())
location=self.get_source_info(),
config=self.env.config)
try:
name = parser.parse_namespace_object()
parser.assert_end()
@ -3175,7 +3176,8 @@ class CNamespacePushObject(SphinxDirective):
if self.arguments[0].strip() in ('NULL', '0', 'nullptr'):
return []
parser = DefinitionParser(self.arguments[0],
location=self.get_source_info())
location=self.get_source_info(),
config=self.env.config)
try:
name = parser.parse_namespace_object()
parser.assert_end()