forked from qt-creator/qt-creator
Store the names in a set.
This commit is contained in:
@@ -50,17 +50,11 @@
|
||||
#include "NameVisitor.h"
|
||||
#include "Literals.h"
|
||||
#include <cstring>
|
||||
#include <cassert>
|
||||
#include <algorithm>
|
||||
|
||||
using namespace CPlusPlus;
|
||||
|
||||
QualifiedNameId::QualifiedNameId(const Name *const *names,
|
||||
unsigned nameCount,
|
||||
bool isGlobal)
|
||||
: _names(names, names + nameCount),
|
||||
_isGlobal(isGlobal)
|
||||
{ }
|
||||
|
||||
QualifiedNameId::~QualifiedNameId()
|
||||
{ }
|
||||
|
||||
@@ -159,13 +153,6 @@ bool DestructorNameId::isEqualTo(const Name *other) const
|
||||
return l->isEqualTo(r);
|
||||
}
|
||||
|
||||
TemplateNameId::TemplateNameId(const Identifier *identifier,
|
||||
const FullySpecifiedType templateArguments[],
|
||||
unsigned templateArgumentCount)
|
||||
: _identifier(identifier),
|
||||
_templateArguments(templateArguments, templateArguments + templateArgumentCount)
|
||||
{ }
|
||||
|
||||
TemplateNameId::~TemplateNameId()
|
||||
{ }
|
||||
|
||||
@@ -249,13 +236,6 @@ bool ConversionNameId::isEqualTo(const Name *other) const
|
||||
return _type.isEqualTo(c->type());
|
||||
}
|
||||
|
||||
SelectorNameId::SelectorNameId(const Name *const *names,
|
||||
unsigned nameCount,
|
||||
bool hasArguments)
|
||||
: _names(names, names + nameCount),
|
||||
_hasArguments(hasArguments)
|
||||
{ }
|
||||
|
||||
SelectorNameId::~SelectorNameId()
|
||||
{ }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user