Fix compile warnings about missing override

Task-number: QTCREATORBUG-24098
Change-Id: I9c50d070d34a198b39176f6db13bc2f95521a6a8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2020-11-23 16:44:16 +01:00
parent c1a0e9d638
commit b5c820d76d
10 changed files with 1384 additions and 1384 deletions

View File

@@ -35,17 +35,17 @@ public:
virtual ~QualifiedNameId();
virtual const Identifier *identifier() const;
const Identifier *identifier() const override;
const Name *base() const;
const Name *name() const;
virtual const QualifiedNameId *asQualifiedNameId() const
const QualifiedNameId *asQualifiedNameId() const override
{ return this; }
protected:
virtual void accept0(NameVisitor *visitor) const;
virtual bool match0(const Name *otherName, Matcher *matcher) const;
void accept0(NameVisitor *visitor) const override;
bool match0(const Name *otherName, Matcher *matcher) const override;
private:
const Name *_base;
@@ -58,16 +58,16 @@ public:
DestructorNameId(const Name *name);
virtual ~DestructorNameId();
virtual const Name *name() const;
const Name *name() const;
virtual const Identifier *identifier() const;
const Identifier *identifier() const override;
virtual const DestructorNameId *asDestructorNameId() const
const DestructorNameId *asDestructorNameId() const override
{ return this; }
protected:
virtual void accept0(NameVisitor *visitor) const;
virtual bool match0(const Name *otherName, Matcher *matcher) const;
void accept0(NameVisitor *visitor) const override;
bool match0(const Name *otherName, Matcher *matcher) const override;
private:
const Name *_name;
@@ -130,13 +130,13 @@ public:
virtual ~TemplateNameId();
virtual const Identifier *identifier() const;
const Identifier *identifier() const override;
// ### find a better name
int templateArgumentCount() const;
const TemplateArgument &templateArgumentAt(int index) const;
virtual const TemplateNameId *asTemplateNameId() const
const TemplateNameId *asTemplateNameId() const override
{ return this; }
typedef std::vector<TemplateArgument>::const_iterator TemplateArgumentIterator;
@@ -151,8 +151,8 @@ public:
};
protected:
virtual void accept0(NameVisitor *visitor) const;
virtual bool match0(const Name *otherName, Matcher *matcher) const;
void accept0(NameVisitor *visitor) const override;
bool match0(const Name *otherName, Matcher *matcher) const override;
private:
const Identifier *_identifier;
@@ -224,14 +224,14 @@ public:
Kind kind() const;
virtual const Identifier *identifier() const;
const Identifier *identifier() const override;
virtual const OperatorNameId *asOperatorNameId() const
const OperatorNameId *asOperatorNameId() const override
{ return this; }
protected:
virtual void accept0(NameVisitor *visitor) const;
virtual bool match0(const Name *otherName, Matcher *matcher) const;
void accept0(NameVisitor *visitor) const override;
bool match0(const Name *otherName, Matcher *matcher) const override;
private:
Kind _kind;
@@ -245,14 +245,14 @@ public:
FullySpecifiedType type() const;
virtual const Identifier *identifier() const;
const Identifier *identifier() const override;
virtual const ConversionNameId *asConversionNameId() const
const ConversionNameId *asConversionNameId() const override
{ return this; }
protected:
virtual void accept0(NameVisitor *visitor) const;
virtual bool match0(const Name *otherName, Matcher *matcher) const;
void accept0(NameVisitor *visitor) const override;
bool match0(const Name *otherName, Matcher *matcher) const override;
private:
FullySpecifiedType _type;
@@ -267,13 +267,13 @@ public:
virtual ~SelectorNameId();
virtual const Identifier *identifier() const;
const Identifier *identifier() const override;
int nameCount() const;
const Name *nameAt(int index) const;
bool hasArguments() const;
virtual const SelectorNameId *asSelectorNameId() const
const SelectorNameId *asSelectorNameId() const override
{ return this; }
typedef std::vector<const Name *>::const_iterator NameIterator;
@@ -282,8 +282,8 @@ public:
NameIterator lastName() const { return _names.end(); }
protected:
virtual void accept0(NameVisitor *visitor) const;
virtual bool match0(const Name *otherName, Matcher *matcher) const;
void accept0(NameVisitor *visitor) const override;
bool match0(const Name *otherName, Matcher *matcher) const override;
private:
std::vector<const Name *> _names;
@@ -298,14 +298,14 @@ public:
int classTokenIndex() const;
virtual const Identifier *identifier() const;
const Identifier *identifier() const override;
virtual const AnonymousNameId *asAnonymousNameId() const
const AnonymousNameId *asAnonymousNameId() const override
{ return this; }
protected:
virtual void accept0(NameVisitor *visitor) const;
virtual bool match0(const Name *otherName, Matcher *matcher) const;
void accept0(NameVisitor *visitor) const override;
bool match0(const Name *otherName, Matcher *matcher) const override;
private:
int _classTokenIndex;