@@ -6581,7 +6581,7 @@ QualType ASTContext::getUnqualifiedArrayType(QualType type,
6581
6581
/// \param AllowPiMismatch Allow the Pi1 and Pi2 to differ as described in
6582
6582
/// C++20 [conv.qual], if permitted by the current language mode.
6583
6583
void ASTContext::UnwrapSimilarArrayTypes(QualType &T1, QualType &T2,
6584
- bool AllowPiMismatch) {
6584
+ bool AllowPiMismatch) const {
6585
6585
while (true) {
6586
6586
auto *AT1 = getAsArrayType(T1);
6587
6587
if (!AT1)
@@ -6632,7 +6632,7 @@ void ASTContext::UnwrapSimilarArrayTypes(QualType &T1, QualType &T2,
6632
6632
/// \return \c true if a pointer type was unwrapped, \c false if we reached a
6633
6633
/// pair of types that can't be unwrapped further.
6634
6634
bool ASTContext::UnwrapSimilarTypes(QualType &T1, QualType &T2,
6635
- bool AllowPiMismatch) {
6635
+ bool AllowPiMismatch) const {
6636
6636
UnwrapSimilarArrayTypes(T1, T2, AllowPiMismatch);
6637
6637
6638
6638
const auto *T1PtrType = T1->getAs<PointerType>();
@@ -6668,7 +6668,7 @@ bool ASTContext::UnwrapSimilarTypes(QualType &T1, QualType &T2,
6668
6668
return false;
6669
6669
}
6670
6670
6671
- bool ASTContext::hasSimilarType(QualType T1, QualType T2) {
6671
+ bool ASTContext::hasSimilarType(QualType T1, QualType T2) const {
6672
6672
while (true) {
6673
6673
Qualifiers Quals;
6674
6674
T1 = getUnqualifiedArrayType(T1, Quals);
0 commit comments