diff options
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Type.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Type.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/libs/3rdparty/cplusplus/Type.h b/src/libs/3rdparty/cplusplus/Type.h index fe686807f5..77cd20a8c3 100644 --- a/src/libs/3rdparty/cplusplus/Type.h +++ b/src/libs/3rdparty/cplusplus/Type.h @@ -97,21 +97,17 @@ public: void accept(TypeVisitor *visitor); static void accept(Type *type, TypeVisitor *visitor); - static bool matchType(const Type *type, const Type *otherType, TypeMatcher *matcher) - { - if (! type) - return type == otherType; + static bool match(const Type *type, const Type *otherType, Matcher *matcher); - return type->matchType(otherType, matcher); - } - - bool matchType(const Type *otherType, TypeMatcher *matcher) const; virtual bool isEqualTo(const Type *other) const = 0; // ### remove protected: virtual void accept0(TypeVisitor *visitor) = 0; - virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const = 0; + +protected: // for Matcher + friend Matcher; + virtual bool match0(const Type *otherType, Matcher *matcher) const = 0; }; } // namespace CPlusPlus |