// Copyright (C) 2018 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 #include #include #include namespace ProjectExplorer { class HeaderPath; class Macro; } namespace CompilationDatabaseProjectManager { namespace Internal { class DbEntry { public: QStringList flags; Utils::FilePath fileName; QString workingDir; }; class DbContents { public: std::vector entries; QString extraFileName; QStringList extras; }; using MimeBinaryCache = QHash; QStringList filterFromFileName(const QStringList &flags, QString baseName); void filteredFlags(const QString &fileName, const QString &workingDir, QStringList &flags, QVector &headerPaths, QVector ¯os, CppEditor::ProjectFile::Kind &fileKind, Utils::FilePath &sysRoot); QStringList splitCommandLine(QString commandLine, QSet &flagsCache); } // namespace Internal } // namespace CompilationDatabaseProjectManager