forked from qt-creator/qt-creator
CppTools: Rename updateHelper -> updateImpl
Change-Id: If1a1fb97aa2bcfad186c013f2b2cc4b94c66001e Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -35,7 +35,7 @@ ClangEditorDocumentParser::ClangEditorDocumentParser(const QString &filePath)
|
||||
setConfiguration(config);
|
||||
}
|
||||
|
||||
void ClangEditorDocumentParser::updateHelper(const QFutureInterface<void> &,
|
||||
void ClangEditorDocumentParser::updateImpl(const QFutureInterface<void> &,
|
||||
const CppTools::WorkingCopy &,
|
||||
const ProjectExplorer::Project *activeProject)
|
||||
{
|
||||
|
@@ -37,7 +37,7 @@ public:
|
||||
ClangEditorDocumentParser(const QString &filePath);
|
||||
|
||||
private:
|
||||
void updateHelper(const QFutureInterface<void> &future,
|
||||
void updateImpl(const QFutureInterface<void> &future,
|
||||
const CppTools::WorkingCopy &,
|
||||
const ProjectExplorer::Project *activeProject) override;
|
||||
};
|
||||
|
@@ -41,13 +41,13 @@ namespace CppTools {
|
||||
It's meant to be used in the C++ editor to get precise results by using
|
||||
the "best" project part for a file.
|
||||
|
||||
Derived classes are expected to implement updateHelper() this way:
|
||||
Derived classes are expected to implement updateImpl() this way:
|
||||
|
||||
\list
|
||||
\li Get a copy of the configuration and the last state.
|
||||
\li Work on the data and do whatever is necessary. At least, update
|
||||
the project part with the help of determineProjectPart().
|
||||
\li Ensure the new state is set before updateHelper() returns.
|
||||
\li Ensure the new state is set before updateImpl() returns.
|
||||
\endlist
|
||||
*/
|
||||
|
||||
@@ -89,7 +89,7 @@ void BaseEditorDocumentParser::update(const QFutureInterface<void> &future,
|
||||
const ProjectExplorer::Project *activeProject)
|
||||
{
|
||||
QMutexLocker locker(&m_updateIsRunning);
|
||||
updateHelper(future, workingCopy, activeProject);
|
||||
updateImpl(future, workingCopy, activeProject);
|
||||
}
|
||||
|
||||
BaseEditorDocumentParser::State BaseEditorDocumentParser::state() const
|
||||
|
@@ -84,7 +84,7 @@ protected:
|
||||
mutable QMutex m_stateAndConfigurationMutex;
|
||||
|
||||
private:
|
||||
virtual void updateHelper(const QFutureInterface<void> &future,
|
||||
virtual void updateImpl(const QFutureInterface<void> &future,
|
||||
const WorkingCopy &workingCopy,
|
||||
const ProjectExplorer::Project *activeProject) = 0;
|
||||
|
||||
|
@@ -55,7 +55,7 @@ BuiltinEditorDocumentParser::BuiltinEditorDocumentParser(const QString &filePath
|
||||
qRegisterMetaType<CPlusPlus::Snapshot>("CPlusPlus::Snapshot");
|
||||
}
|
||||
|
||||
void BuiltinEditorDocumentParser::updateHelper(const QFutureInterface<void> &future,
|
||||
void BuiltinEditorDocumentParser::updateImpl(const QFutureInterface<void> &future,
|
||||
const WorkingCopy &theWorkingCopy,
|
||||
const ProjectExplorer::Project *activeProject)
|
||||
{
|
||||
|
@@ -58,7 +58,7 @@ public:
|
||||
static Ptr get(const QString &filePath);
|
||||
|
||||
private:
|
||||
void updateHelper(const QFutureInterface<void> &future,
|
||||
void updateImpl(const QFutureInterface<void> &future,
|
||||
const WorkingCopy &workingCopy,
|
||||
const ProjectExplorer::Project *activeProject) override;
|
||||
void addFileAndDependencies(CPlusPlus::Snapshot *snapshot,
|
||||
|
Reference in New Issue
Block a user