diff --git a/compilerplugins/clang/typedefparam.cxx b/compilerplugins/clang/typedefparam.cxx index fe6ebba78f0f..d5b3a76103c9 100644 --- a/compilerplugins/clang/typedefparam.cxx +++ b/compilerplugins/clang/typedefparam.cxx @@ -273,6 +273,13 @@ static bool areTypesEqual(QualType lhs, QualType rhs) return false; return areTypesEqual(lhsDecayed->getAdjustedType(), rhsDecayed->getAdjustedType()); } + if (auto lhsAttr = dyn_cast(lhsType)) + { + auto rhsAttr = dyn_cast(rhsType); + if (!rhsAttr) + return false; + return areTypesEqual(lhsAttr->getModifiedType(), rhsAttr->getModifiedType()); + } return lhsType == rhsType; }