forked from qt-creator/qt-creator
Clang: Inline some functions
Change-Id: I923919f206f038cf8cedf709b4047cbc22a990ee Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -66,13 +66,14 @@ ClangCodeModelServer::ClangCodeModelServer()
|
||||
QObject::connect(&updateVisibleButNotCurrentDocumentsTimer,
|
||||
&QTimer::timeout,
|
||||
[this]() {
|
||||
processJobsForDirtyAndVisibleButNotCurrentDocuments();
|
||||
addAndRunUpdateJobs(documents.dirtyAndVisibleButNotCurrentDocuments());
|
||||
});
|
||||
|
||||
QObject::connect(documents.clangFileSystemWatcher(),
|
||||
&ClangFileSystemWatcher::fileChanged,
|
||||
[this](const Utf8String &filePath) {
|
||||
ClangCodeModelServer::startDocumentAnnotationsTimerIfFileIsNotOpenAsDocument(filePath);
|
||||
if (!documents.hasDocumentWithFilePath(filePath))
|
||||
updateDocumentAnnotationsTimer.start(0);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -308,12 +309,6 @@ const Documents &ClangCodeModelServer::documentsForTestOnly() const
|
||||
return documents;
|
||||
}
|
||||
|
||||
void ClangCodeModelServer::startDocumentAnnotationsTimerIfFileIsNotOpenAsDocument(const Utf8String &filePath)
|
||||
{
|
||||
if (!documents.hasDocumentWithFilePath(filePath))
|
||||
updateDocumentAnnotationsTimer.start(0);
|
||||
}
|
||||
|
||||
QList<Jobs::RunningJob> ClangCodeModelServer::runningJobsForTestsOnly()
|
||||
{
|
||||
return documentProcessors().runningJobs();
|
||||
@@ -375,11 +370,6 @@ void ClangCodeModelServer::processTimerForVisibleButNotCurrentDocuments()
|
||||
}
|
||||
}
|
||||
|
||||
void ClangCodeModelServer::processJobsForDirtyAndVisibleButNotCurrentDocuments()
|
||||
{
|
||||
addAndRunUpdateJobs(documents.dirtyAndVisibleButNotCurrentDocuments());
|
||||
}
|
||||
|
||||
void ClangCodeModelServer::processSuspendResumeJobs(const std::vector<Document> &documents)
|
||||
{
|
||||
const SuspendResumeJobs suspendResumeJobs = createSuspendResumeJobs(documents);
|
||||
|
||||
Reference in New Issue
Block a user