// Copyright (C) 2018 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #pragma once #include #include #include namespace ProjectExplorer { class HeaderPath; class Macro; } namespace CompilationDatabaseProjectManager { namespace Internal { class DbEntry { public: QStringList flags; Utils::FilePath fileName; Utils::FilePath workingDir; }; class DbContents { public: std::vector entries; QString extraFileName; QStringList extras; }; using MimeBinaryCache = Utils::SynchronizedValue>; QStringList filterFromFileName(const QStringList &flags, const QString &fileName); void filteredFlags(const Utils::FilePath &filePath, const Utils::FilePath &workingDir, QStringList &flags, QVector &headerPaths, QVector ¯os, CppEditor::ProjectFile::Kind &fileKind, Utils::FilePath &sysRoot); QStringList splitCommandLine(QString commandLine, QSet &flagsCache); } // namespace Internal } // namespace CompilationDatabaseProjectManager