Store the names in a set.

This commit is contained in:
Roberto Raggi
2009-12-01 14:38:42 +01:00
parent c4d1274273
commit c4737c1fdf
4 changed files with 125 additions and 180 deletions

View File

@@ -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()
{ }