forked from qt-creator/qt-creator
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>
This commit is contained in:
10
src/libs/3rdparty/cplusplus/Name.cpp
vendored
10
src/libs/3rdparty/cplusplus/Name.cpp
vendored
@@ -58,11 +58,6 @@ bool Name::isQualifiedNameId() const
|
||||
bool Name::isSelectorNameId() const
|
||||
{ return asSelectorNameId() != 0; }
|
||||
|
||||
bool Name::match(const Name *name, const Name *otherName, Matcher *matcher)
|
||||
{
|
||||
return Matcher::match(name, otherName, matcher);
|
||||
}
|
||||
|
||||
void Name::accept(NameVisitor *visitor) const
|
||||
{
|
||||
if (visitor->preVisit(this))
|
||||
@@ -77,6 +72,11 @@ void Name::accept(const Name *name, NameVisitor *visitor)
|
||||
name->accept(visitor);
|
||||
}
|
||||
|
||||
bool Name::match(const Name *other, Matcher *matcher) const
|
||||
{
|
||||
return Matcher::match(this, other, matcher);
|
||||
}
|
||||
|
||||
bool Name::Compare::operator()(const Name *name, const Name *other) const
|
||||
{
|
||||
if (name == 0)
|
||||
|
||||
Reference in New Issue
Block a user