C++: handle destructor names with template parameters.

Change-Id: I74b4fd5e043db935abc18345b303d294b71e8fc2
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
This commit is contained in:
Erik Verbruggen
2012-02-16 10:54:44 +01:00
parent c9999a9382
commit 368d5926ca
17 changed files with 277 additions and 47 deletions

View File

@@ -57,9 +57,11 @@ private:
class CPLUSPLUS_EXPORT DestructorNameId: public Name
{
public:
DestructorNameId(const Identifier *identifier);
DestructorNameId(const Name *name);
virtual ~DestructorNameId();
virtual const Name *name() const;
virtual const Identifier *identifier() const;
virtual bool isEqualTo(const Name *other) const;
@@ -71,7 +73,7 @@ protected:
virtual void accept0(NameVisitor *visitor) const;
private:
const Identifier *_identifier;
const Name *_name;
};
class CPLUSPLUS_EXPORT TemplateNameId: public Name