forked from qt-creator/qt-creator
CppIndexingSupport: Make some functions static
Change-Id: Id91e4e88e65d706f8dc555896631b79b3159f31d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -106,7 +106,7 @@ private:
|
|||||||
int m_processedDiagnostics = 0;
|
int m_processedDiagnostics = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
void classifyFiles(const QSet<QString> &files, QStringList *headers, QStringList *sources)
|
static void classifyFiles(const QSet<QString> &files, QStringList *headers, QStringList *sources)
|
||||||
{
|
{
|
||||||
for (const QString &file : files) {
|
for (const QString &file : files) {
|
||||||
if (ProjectFile::isSource(ProjectFile::classify(file)))
|
if (ProjectFile::isSource(ProjectFile::classify(file)))
|
||||||
@@ -116,7 +116,7 @@ void classifyFiles(const QSet<QString> &files, QStringList *headers, QStringList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void indexFindErrors(QPromise<void> &promise, const ParseParams params)
|
static void indexFindErrors(QPromise<void> &promise, const ParseParams params)
|
||||||
{
|
{
|
||||||
QStringList sources, headers;
|
QStringList sources, headers;
|
||||||
classifyFiles(params.sourceFiles, &headers, &sources);
|
classifyFiles(params.sourceFiles, &headers, &sources);
|
||||||
@@ -158,7 +158,7 @@ void indexFindErrors(QPromise<void> &promise, const ParseParams params)
|
|||||||
qDebug("FindErrorsIndexing: %s", qPrintable(elapsedTime));
|
qDebug("FindErrorsIndexing: %s", qPrintable(elapsedTime));
|
||||||
}
|
}
|
||||||
|
|
||||||
void index(QPromise<void> &promise, const ParseParams params)
|
static void index(QPromise<void> &promise, const ParseParams params)
|
||||||
{
|
{
|
||||||
QScopedPointer<Internal::CppSourceProcessor> sourceProcessor(CppModelManager::createSourceProcessor());
|
QScopedPointer<Internal::CppSourceProcessor> sourceProcessor(CppModelManager::createSourceProcessor());
|
||||||
sourceProcessor->setFileSizeLimitInMb(params.indexerFileSizeLimitInMb);
|
sourceProcessor->setFileSizeLimitInMb(params.indexerFileSizeLimitInMb);
|
||||||
@@ -220,7 +220,7 @@ void index(QPromise<void> &promise, const ParseParams params)
|
|||||||
qCDebug(indexerLog) << "Indexing finished.";
|
qCDebug(indexerLog) << "Indexing finished.";
|
||||||
}
|
}
|
||||||
|
|
||||||
void parse(QPromise<void> &promise, const ParseParams params)
|
static void parse(QPromise<void> &promise, const ParseParams params)
|
||||||
{
|
{
|
||||||
const QSet<QString> &files = params.sourceFiles;
|
const QSet<QString> &files = params.sourceFiles;
|
||||||
if (files.isEmpty())
|
if (files.isEmpty())
|
||||||
|
|||||||
Reference in New Issue
Block a user