Kaydet (Commit) b54f46a8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst ed43570b
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment