diff options
author | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-05-15 12:00:13 -0400 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-05-23 14:43:30 +0200 |
commit | acbc4b9f07ee8278ee88857c5be224d15e070ffc (patch) | |
tree | 12cd64abf028986905da03a0d7078576e4205e33 /src/libs/3rdparty/cplusplus/Name.h | |
parent | 558f62ec71a43c5fac7838f698edd95a26ff892d (diff) |
C++: Get rid of {Name,Type}::isEqualTo()
...since it's superseded by the class Matcher.
For consistency, rename FullySpecifiedType::isEqualTo() to match().
Change-Id: I07640f9218d814e0350265de45f05929e5d595a9
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Name.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Name.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libs/3rdparty/cplusplus/Name.h b/src/libs/3rdparty/cplusplus/Name.h index 9f6ae89e30..507195bead 100644 --- a/src/libs/3rdparty/cplusplus/Name.h +++ b/src/libs/3rdparty/cplusplus/Name.h @@ -22,6 +22,7 @@ #define CPLUSPLUS_NAME_H #include "CPlusPlusForwardDeclarations.h" +#include "Matcher.h" #include <functional> @@ -53,13 +54,11 @@ public: virtual const QualifiedNameId *asQualifiedNameId() const { return 0; } virtual const SelectorNameId *asSelectorNameId() const { return 0; } - virtual bool isEqualTo(const Name *other) const = 0; // TODO: remove me - - static bool match(const Name *name, const Name *otherName, Matcher *matcher); - void accept(NameVisitor *visitor) const; static void accept(const Name *name, NameVisitor *visitor); + bool match(const Name *other, Matcher *matcher = 0) const; + public: struct Compare: std::binary_function<const Name *, const Name *, bool> { bool operator()(const Name *name, const Name *other) const; |