Commit e5da3d8a authored by Tobias Hunger's avatar Tobias Hunger

cpptools: s/Q_DECL_OVERRIDE/override/g

Change-Id: I1b239a666b6605035e0f9c140d940e8c260bafd3
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 314d4ce4
......@@ -49,7 +49,7 @@ class CPPTOOLS_EXPORT BuiltinEditorDocumentParser : public BaseEditorDocumentPar
public:
BuiltinEditorDocumentParser(const QString &filePath);
void update(WorkingCopy workingCopy) Q_DECL_OVERRIDE;
void update(WorkingCopy workingCopy) override;
void releaseResources();
CPlusPlus::Document::Ptr document() const;
......
......@@ -50,12 +50,12 @@ public:
~BuiltinEditorDocumentProcessor();
// BaseEditorDocumentProcessor interface
void run() Q_DECL_OVERRIDE;
void semanticRehighlight(bool force) Q_DECL_OVERRIDE;
CppTools::SemanticInfo recalculateSemanticInfo() Q_DECL_OVERRIDE;
BaseEditorDocumentParser *parser() Q_DECL_OVERRIDE;
CPlusPlus::Snapshot snapshot() Q_DECL_OVERRIDE;
bool isParserRunning() const Q_DECL_OVERRIDE;
void run() override;
void semanticRehighlight(bool force) override;
CppTools::SemanticInfo recalculateSemanticInfo() override;
BaseEditorDocumentParser *parser() override;
CPlusPlus::Snapshot snapshot() override;
bool isParserRunning() const override;
private:
void onParserFinished(CPlusPlus::Document::Ptr document, CPlusPlus::Snapshot snapshot);
......
......@@ -48,8 +48,8 @@ public:
~CppClassesFilter();
protected:
IndexItem::ItemType matchTypes() const Q_DECL_OVERRIDE { return IndexItem::Class; }
Core::LocatorFilterEntry filterEntryFromIndexItem(IndexItem::Ptr info) Q_DECL_OVERRIDE;
IndexItem::ItemType matchTypes() const override { return IndexItem::Class; }
Core::LocatorFilterEntry filterEntryFromIndexItem(IndexItem::Ptr info) override;
};
} // namespace CppTools
......
......@@ -91,8 +91,8 @@ public:
CppAssistProposalItem() :
m_isOverloaded(false) {}
bool prematurelyApplies(const QChar &c) const Q_DECL_OVERRIDE;
void applyContextualContent(TextEditorWidget *editorWidget, int basePosition) const Q_DECL_OVERRIDE;
bool prematurelyApplies(const QChar &c) const override;
void applyContextualContent(TextEditorWidget *editorWidget, int basePosition) const override;
bool isOverloaded() const { return m_isOverloaded; }
void markAsOverloaded() { m_isOverloaded = true; }
......@@ -351,10 +351,10 @@ public:
, m_typeOfExpression(typeOfExp)
{}
void reset() Q_DECL_OVERRIDE {}
int size() const Q_DECL_OVERRIDE { return m_functionSymbols.size(); }
QString text(int index) const Q_DECL_OVERRIDE;
int activeArgument(const QString &prefix) const Q_DECL_OVERRIDE;
void reset() override {}
int size() const override { return m_functionSymbols.size(); }
QString text(int index) const override;
int activeArgument(const QString &prefix) const override;
private:
QList<Function *> m_functionSymbols;
......@@ -439,8 +439,8 @@ public:
, m_replaceDotForArrow(static_cast<CppAssistProposalModel *>(model)->m_replaceDotForArrow)
{}
bool isCorrective() const Q_DECL_OVERRIDE { return m_replaceDotForArrow; }
void makeCorrection(TextEditorWidget *editorWidget) Q_DECL_OVERRIDE;
bool isCorrective() const override { return m_replaceDotForArrow; }
void makeCorrection(TextEditorWidget *editorWidget) override;
private:
bool m_replaceDotForArrow;
......
......@@ -74,8 +74,8 @@ public:
m_typeOfExpression->setExpandTemplates(true);
}
bool isSortable(const QString &prefix) const Q_DECL_OVERRIDE;
TextEditor::AssistProposalItem *proposalItem(int index) const Q_DECL_OVERRIDE;
bool isSortable(const QString &prefix) const override;
TextEditor::AssistProposalItem *proposalItem(int index) const override;
unsigned m_completionOperator;
bool m_replaceDotForArrow;
......@@ -87,14 +87,14 @@ class InternalCompletionAssistProvider : public CppCompletionAssistProvider
Q_OBJECT
public:
TextEditor::IAssistProcessor *createProcessor() const Q_DECL_OVERRIDE;
TextEditor::IAssistProcessor *createProcessor() const override;
TextEditor::AssistInterface *createAssistInterface(
const QString &filePath,
QTextDocument *document,
const CPlusPlus::LanguageFeatures &languageFeatures,
int position,
TextEditor::AssistReason reason) const Q_DECL_OVERRIDE;
TextEditor::AssistReason reason) const override;
};
class InternalCppCompletionAssistProcessor : public CppCompletionAssistProcessor
......@@ -103,7 +103,7 @@ public:
InternalCppCompletionAssistProcessor();
~InternalCppCompletionAssistProcessor();
TextEditor::IAssistProposal *perform(const TextEditor::AssistInterface *interface) Q_DECL_OVERRIDE;
TextEditor::IAssistProposal *perform(const TextEditor::AssistInterface *interface) override;
private:
TextEditor::IAssistProposal *createContentProposal();
......
......@@ -54,10 +54,10 @@ class CPPTOOLS_EXPORT CppCompletionAssistProvider : public TextEditor::Completio
Q_OBJECT
public:
bool supportsEditor(Core::Id editorId) const Q_DECL_OVERRIDE;
int activationCharSequenceLength() const Q_DECL_OVERRIDE;
bool isActivationCharSequence(const QString &sequence) const Q_DECL_OVERRIDE;
bool isContinuationChar(const QChar &c) const Q_DECL_OVERRIDE;
bool supportsEditor(Core::Id editorId) const override;
int activationCharSequenceLength() const override;
bool isActivationCharSequence(const QString &sequence) const override;
bool isContinuationChar(const QChar &c) const override;
virtual TextEditor::AssistInterface *createAssistInterface(
const QString &filePath,
......
......@@ -47,8 +47,8 @@ public:
~CppFunctionsFilter();
protected:
IndexItem::ItemType matchTypes() const Q_DECL_OVERRIDE { return IndexItem::Function; }
Core::LocatorFilterEntry filterEntryFromIndexItem(IndexItem::Ptr info) Q_DECL_OVERRIDE;
IndexItem::ItemType matchTypes() const override { return IndexItem::Function; }
Core::LocatorFilterEntry filterEntryFromIndexItem(IndexItem::Ptr info) override;
};
} // namespace Internal
......
......@@ -93,22 +93,22 @@ private:
void mergeEnvironment(CPlusPlus::Document::Ptr doc);
// Client interface
void macroAdded(const CPlusPlus::Macro &macro) Q_DECL_OVERRIDE;
void macroAdded(const CPlusPlus::Macro &macro) override;
void passedMacroDefinitionCheck(unsigned bytesOffset, unsigned utf16charsOffset,
unsigned line, const CPlusPlus::Macro &macro) Q_DECL_OVERRIDE;
unsigned line, const CPlusPlus::Macro &macro) override;
void failedMacroDefinitionCheck(unsigned bytesOffset, unsigned utf16charOffset,
const CPlusPlus::ByteArrayRef &name) Q_DECL_OVERRIDE;
const CPlusPlus::ByteArrayRef &name) override;
void notifyMacroReference(unsigned bytesOffset, unsigned utf16charOffset,
unsigned line, const CPlusPlus::Macro &macro) Q_DECL_OVERRIDE;
unsigned line, const CPlusPlus::Macro &macro) override;
void startExpandingMacro(unsigned bytesOffset, unsigned utf16charOffset,
unsigned line, const CPlusPlus::Macro &macro,
const QVector<CPlusPlus::MacroArgumentReference> &actuals) Q_DECL_OVERRIDE;
void stopExpandingMacro(unsigned bytesOffset, const CPlusPlus::Macro &macro) Q_DECL_OVERRIDE;
void markAsIncludeGuard(const QByteArray &macroName) Q_DECL_OVERRIDE;
void startSkippingBlocks(unsigned utf16charsOffset) Q_DECL_OVERRIDE;
void stopSkippingBlocks(unsigned utf16charsOffset) Q_DECL_OVERRIDE;
const QVector<CPlusPlus::MacroArgumentReference> &actuals) override;
void stopExpandingMacro(unsigned bytesOffset, const CPlusPlus::Macro &macro) override;
void markAsIncludeGuard(const QByteArray &macroName) override;
void startSkippingBlocks(unsigned utf16charsOffset) override;
void stopSkippingBlocks(unsigned utf16charsOffset) override;
void sourceNeeded(unsigned line, const QString &fileName, IncludeType type,
const QStringList &initialIncludes) Q_DECL_OVERRIDE;
const QStringList &initialIncludes) override;
private:
CPlusPlus::Snapshot m_snapshot;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment