C++: Do not assert False if type and declType mismatch

Revert to 1.6.4 behavior where a warning was raised instead.
This commit is contained in:
Dmitry Shachnev 2017-09-28 21:48:22 +03:00
parent 3ec2a649b4
commit b01de08e19

View File

@ -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():