forked from qt-creator/qt-creator
Change-Id: Idc67ecd4e9e95c5893a04ca1a9ee7b30662ec664 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
39 lines
872 B
C++
39 lines
872 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#pragma once
|
|
|
|
#include <cplusplus/CPlusPlusForwardDeclarations.h>
|
|
|
|
#include <utils/fileutils.h>
|
|
|
|
#include <QBitArray>
|
|
#include <QHash>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
#include <QVector>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
template <typename T>
|
|
class QFuture;
|
|
QT_END_NAMESPACE
|
|
|
|
namespace CPlusPlus {
|
|
|
|
class Snapshot;
|
|
|
|
class CPLUSPLUS_EXPORT DependencyTable
|
|
{
|
|
private:
|
|
friend class Snapshot;
|
|
void build(const std::optional<QFuture<void>> &future, const Snapshot &snapshot);
|
|
Utils::FilePaths filesDependingOn(const Utils::FilePath &fileName) const;
|
|
|
|
QVector<Utils::FilePath> files;
|
|
QHash<Utils::FilePath, int> fileIndex;
|
|
QHash<int, QList<int> > includes;
|
|
QVector<QBitArray> includeMap;
|
|
};
|
|
|
|
} // namespace CPlusPlus
|