aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/builtinindexingsupport.h
blob: 0d5b7b2da5e7413cd5a5a1ce165dc9f494bdd32e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include "cppindexingsupport.h"
#include "cppmodelmanager.h"

#include <utils/futuresynchronizer.h>

namespace CppEditor::Internal {

class BuiltinIndexingSupport: public CppIndexingSupport {
public:
    BuiltinIndexingSupport();
    ~BuiltinIndexingSupport() override;

    QFuture<void> refreshSourceFiles(const QSet<QString> &sourceFiles,
                                     CppModelManager::ProgressNotificationMode mode) override;
    SymbolSearcher *createSymbolSearcher(const SymbolSearcher::Parameters &parameters,
                                         const QSet<QString> &fileNames) override;

public:
    static bool isFindErrorsIndexingActive();

private:
    Utils::FutureSynchronizer m_synchronizer;
};

} // namespace CppEditor::Internal