mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #4096 from mitya57/cpp-no-assert
C++: Do not assert False if type and declType mismatch
This commit is contained in:
commit
0aa5c1b697
@ -4963,8 +4963,8 @@ class CPPDomain(Domain):
|
||||
if declTyp == 'templateParam':
|
||||
return True
|
||||
objtypes = self.objtypes_for_role(typ)
|
||||
if objtypes and declTyp in objtypes:
|
||||
return True
|
||||
if objtypes:
|
||||
return declTyp in objtypes
|
||||
print("Type is %s, declType is %s" % (typ, declTyp))
|
||||
assert False
|
||||
if not checkType():
|
||||
|
Loading…
Reference in New Issue
Block a user