C, neutralize xrefs to fundamental types.

TypedFields generate xrefs to whatever it gets.
See sphinx-doc/sphinx#2439.
This commit is contained in:
Jakob Lykke Andersen 2016-04-19 18:49:29 +09:00
parent ce1b9e3192
commit fab5911004

View File

@ -279,6 +279,9 @@ class CDomain(Domain):
typ, target, node, contnode):
# strip pointer asterisk
target = target.rstrip(' *')
# becase TypedField can generate xrefs
if target in CObject.stopwords:
return contnode
if target not in self.data['objects']:
return None
obj = self.data['objects'][target]