aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/cplusplus/Symbols.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@me.com>2014-03-24 16:06:39 +0100
committerErik Verbruggen <erik.verbruggen@digia.com>2014-03-27 13:46:55 +0100
commitb0618281ecaa71a99dea7235c3c955b2135cc127 (patch)
tree100f2aee0d2bf17637508b468df150a017f2206e /src/libs/3rdparty/cplusplus/Symbols.h
parent186570a25999964e338e55eed08e5a0843a74650 (diff)
C++: Do type and name equality checking in a safe manner.
Change the TypeMatcher to also match names, and use two "block" lists in SafeMatcher to prevent infinite recursion. Task-number: QTCREATORBUG-11240 Change-Id: I0367ae795ee6be579b83aeb8d46723c877e4aa75 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Symbols.h')
-rw-r--r--src/libs/3rdparty/cplusplus/Symbols.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libs/3rdparty/cplusplus/Symbols.h b/src/libs/3rdparty/cplusplus/Symbols.h
index 63432e33f1..cc4913c2c8 100644
--- a/src/libs/3rdparty/cplusplus/Symbols.h
+++ b/src/libs/3rdparty/cplusplus/Symbols.h
@@ -251,7 +251,7 @@ public:
protected:
virtual void visitSymbol0(SymbolVisitor *visitor);
virtual void accept0(TypeVisitor *visitor);
- virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
+ virtual bool match0(const Type *otherType, Matcher *matcher) const;
};
class CPLUSPLUS_EXPORT Enum: public Scope, public Type
@@ -285,7 +285,7 @@ public:
protected:
virtual void visitSymbol0(SymbolVisitor *visitor);
virtual void accept0(TypeVisitor *visitor);
- virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
+ virtual bool match0(const Type *otherType, Matcher *matcher) const;
private:
bool _isScoped;
@@ -375,7 +375,7 @@ public:
protected:
virtual void visitSymbol0(SymbolVisitor *visitor);
virtual void accept0(TypeVisitor *visitor);
- virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
+ virtual bool match0(const Type *otherType, Matcher *matcher) const;
private:
FullySpecifiedType _returnType;
@@ -428,7 +428,7 @@ public:
protected:
virtual void visitSymbol0(SymbolVisitor *visitor);
virtual void accept0(TypeVisitor *visitor);
- virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
+ virtual bool match0(const Type *otherType, Matcher *matcher) const;
};
@@ -466,7 +466,7 @@ public:
protected:
virtual void visitSymbol0(SymbolVisitor *visitor);
virtual void accept0(TypeVisitor *visitor);
- virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
+ virtual bool match0(const Type *otherType, Matcher *matcher) const;
private:
bool _isInline;
@@ -544,7 +544,7 @@ public:
protected:
virtual void visitSymbol0(SymbolVisitor *visitor);
virtual void accept0(TypeVisitor *visitor);
- virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
+ virtual bool match0(const Type *otherType, Matcher *matcher) const;
private:
Key _key;
@@ -686,7 +686,7 @@ public:
protected:
virtual void visitSymbol0(SymbolVisitor *visitor);
virtual void accept0(TypeVisitor *visitor);
- virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
+ virtual bool match0(const Type *otherType, Matcher *matcher) const;
};
class CPLUSPLUS_EXPORT ObjCProtocol: public Scope, public Type
@@ -721,7 +721,7 @@ public:
protected:
virtual void visitSymbol0(SymbolVisitor *visitor);
virtual void accept0(TypeVisitor *visitor);
- virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
+ virtual bool match0(const Type *otherType, Matcher *matcher) const;
private:
std::vector<ObjCBaseProtocol *> _protocols;
@@ -753,7 +753,7 @@ public:
protected:
virtual void visitSymbol0(SymbolVisitor *visitor);
virtual void accept0(TypeVisitor *visitor);
- virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
+ virtual bool match0(const Type *otherType, Matcher *matcher) const;
};
class CPLUSPLUS_EXPORT ObjCClass: public Scope, public Type
@@ -798,7 +798,7 @@ public:
protected:
virtual void visitSymbol0(SymbolVisitor *visitor);
virtual void accept0(TypeVisitor *visitor);
- virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
+ virtual bool match0(const Type *otherType, Matcher *matcher) const;
private:
const Name *_categoryName;
@@ -850,7 +850,7 @@ public:
protected:
virtual void visitSymbol0(SymbolVisitor *visitor);
virtual void accept0(TypeVisitor *visitor);
- virtual bool matchType0(const Type *otherType, TypeMatcher *matcher) const;
+ virtual bool match0(const Type *otherType, Matcher *matcher) const;
private:
FullySpecifiedType _returnType;