@@ -2874,11 +2874,11 @@ class ASTContext : public RefCountedBase<ASTContext> {
28742874 // / returned type is guaranteed to be free of any of these, allowing two
28752875 // / canonical types to be compared for exact equality with a simple pointer
28762876 // / comparison.
2877- CanQualType getCanonicalType (QualType T) const {
2877+ static CanQualType getCanonicalType (QualType T) {
28782878 return CanQualType::CreateUnsafe (T.getCanonicalType ());
28792879 }
28802880
2881- const Type *getCanonicalType (const Type *T) const {
2881+ static const Type *getCanonicalType (const Type *T) {
28822882 return T->getCanonicalTypeInternal ().getTypePtr ();
28832883 }
28842884
@@ -2890,10 +2890,10 @@ class ASTContext : public RefCountedBase<ASTContext> {
28902890 CanQualType getCanonicalParamType (QualType T) const ;
28912891
28922892 // / Determine whether the given types \p T1 and \p T2 are equivalent.
2893- bool hasSameType (QualType T1, QualType T2) const {
2893+ static bool hasSameType (QualType T1, QualType T2) {
28942894 return getCanonicalType (T1) == getCanonicalType (T2);
28952895 }
2896- bool hasSameType (const Type *T1, const Type *T2) const {
2896+ static bool hasSameType (const Type *T1, const Type *T2) {
28972897 return getCanonicalType (T1) == getCanonicalType (T2);
28982898 }
28992899
@@ -2921,7 +2921,7 @@ class ASTContext : public RefCountedBase<ASTContext> {
29212921
29222922 // / Determine whether the given types are equivalent after
29232923 // / cvr-qualifiers have been removed.
2924- bool hasSameUnqualifiedType (QualType T1, QualType T2) const {
2924+ static bool hasSameUnqualifiedType (QualType T1, QualType T2) {
29252925 return getCanonicalType (T1).getTypePtr () ==
29262926 getCanonicalType (T2).getTypePtr ();
29272927 }
0 commit comments