@@ -6581,7 +6581,7 @@ QualType ASTContext::getUnqualifiedArrayType(QualType type,
65816581/// \param AllowPiMismatch Allow the Pi1 and Pi2 to differ as described in
65826582/// C++20 [conv.qual], if permitted by the current language mode.
65836583void ASTContext::UnwrapSimilarArrayTypes(QualType &T1, QualType &T2,
6584- bool AllowPiMismatch) {
6584+ bool AllowPiMismatch) const {
65856585 while (true) {
65866586 auto *AT1 = getAsArrayType(T1);
65876587 if (!AT1)
@@ -6632,7 +6632,7 @@ void ASTContext::UnwrapSimilarArrayTypes(QualType &T1, QualType &T2,
66326632/// \return \c true if a pointer type was unwrapped, \c false if we reached a
66336633/// pair of types that can't be unwrapped further.
66346634bool ASTContext::UnwrapSimilarTypes(QualType &T1, QualType &T2,
6635- bool AllowPiMismatch) {
6635+ bool AllowPiMismatch) const {
66366636 UnwrapSimilarArrayTypes(T1, T2, AllowPiMismatch);
66376637
66386638 const auto *T1PtrType = T1->getAs<PointerType>();
@@ -6668,7 +6668,7 @@ bool ASTContext::UnwrapSimilarTypes(QualType &T1, QualType &T2,
66686668 return false;
66696669}
66706670
6671- bool ASTContext::hasSimilarType(QualType T1, QualType T2) {
6671+ bool ASTContext::hasSimilarType(QualType T1, QualType T2) const {
66726672 while (true) {
66736673 Qualifiers Quals;
66746674 T1 = getUnqualifiedArrayType(T1, Quals);
0 commit comments