diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-11-23 16:44:16 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-12-08 12:44:01 +0000 |
commit | b5c820d76d1e8c88b34c8d6cef2ea89e29bd2297 (patch) | |
tree | ea271f9b9c13ccd43779e6dc8acb8034daa7c05f /src/libs/3rdparty/cplusplus/Names.h | |
parent | c1a0e9d638db0342e541560e49500dad34a3df82 (diff) |
Fix compile warnings about missing override
Task-number: QTCREATORBUG-24098
Change-Id: I9c50d070d34a198b39176f6db13bc2f95521a6a8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Names.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Names.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/libs/3rdparty/cplusplus/Names.h b/src/libs/3rdparty/cplusplus/Names.h index b615394438..6f9480b195 100644 --- a/src/libs/3rdparty/cplusplus/Names.h +++ b/src/libs/3rdparty/cplusplus/Names.h @@ -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; |