Adpat loplugin:typedefparam to AttributedType

...as seen by clang-cl when there are function parameters of function pointer
type involving SAL_CALL

Change-Id: Ie35f00d4e15ca777b14dd5968cdbd97e43bca1a1
Reviewed-on: https://gerrit.libreoffice.org/69789
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2019-03-27 08:49:47 +01:00
parent ed43570bc2
commit b54f46a848

View File

@ -273,6 +273,13 @@ static bool areTypesEqual(QualType lhs, QualType rhs)
return false;
return areTypesEqual(lhsDecayed->getAdjustedType(), rhsDecayed->getAdjustedType());
}
if (auto lhsAttr = dyn_cast<AttributedType>(lhsType))
{
auto rhsAttr = dyn_cast<AttributedType>(rhsType);
if (!rhsAttr)
return false;
return areTypesEqual(lhsAttr->getModifiedType(), rhsAttr->getModifiedType());
}
return lhsType == rhsType;
}