2017-08-02 16:00:55 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** Copyright (C) 2017 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
|
|
|
|
**
|
|
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2018-02-01 18:29:45 +01:00
|
|
|
#include "filestatus.h"
|
2018-01-22 14:21:01 +01:00
|
|
|
#include "projectpartentry.h"
|
2018-02-06 11:16:29 +01:00
|
|
|
#include "projectpartartefacts.h"
|
2017-08-02 16:00:55 +02:00
|
|
|
#include "sourcelocationentry.h"
|
2018-01-30 18:41:45 +01:00
|
|
|
#include "sourcedependency.h"
|
2017-08-02 16:00:55 +02:00
|
|
|
#include "symbolentry.h"
|
2018-01-25 15:20:47 +01:00
|
|
|
#include "usedmacro.h"
|
2017-08-02 16:00:55 +02:00
|
|
|
|
2018-01-22 14:21:01 +01:00
|
|
|
#include <sqlitetransaction.h>
|
|
|
|
|
|
2017-08-02 16:00:55 +02:00
|
|
|
namespace ClangBackEnd {
|
|
|
|
|
|
|
|
|
|
class SymbolStorageInterface
|
|
|
|
|
{
|
|
|
|
|
public:
|
2018-01-22 14:21:01 +01:00
|
|
|
SymbolStorageInterface() = default;
|
|
|
|
|
virtual ~SymbolStorageInterface();
|
|
|
|
|
SymbolStorageInterface(const SymbolStorageInterface &) = delete;
|
|
|
|
|
SymbolStorageInterface &operator=(const SymbolStorageInterface &) = delete;
|
|
|
|
|
|
2017-08-21 12:00:27 +02:00
|
|
|
virtual void addSymbolsAndSourceLocations(const SymbolEntries &symbolEntries,
|
2017-08-02 16:00:55 +02:00
|
|
|
const SourceLocationEntries &sourceLocations) = 0;
|
2018-01-22 14:21:01 +01:00
|
|
|
virtual void insertOrUpdateProjectPart(Utils::SmallStringView projectPartName,
|
2018-01-29 12:07:15 +01:00
|
|
|
const Utils::SmallStringVector &commandLineArguments,
|
|
|
|
|
const Utils::SmallStringVector ¯oNames) = 0;
|
2018-01-22 14:21:01 +01:00
|
|
|
virtual void updateProjectPartSources(Utils::SmallStringView projectPartName,
|
|
|
|
|
const FilePathIds &sourceFilePathIds) = 0;
|
2018-02-06 11:16:29 +01:00
|
|
|
virtual void updateProjectPartSources(int projectPartId,
|
|
|
|
|
const FilePathIds &sourceFilePathIds) = 0;
|
2018-01-25 15:20:47 +01:00
|
|
|
virtual void insertOrUpdateUsedMacros(const UsedMacros &usedMacros) = 0;
|
2018-02-01 18:29:45 +01:00
|
|
|
virtual void insertFileStatuses(const FileStatuses &fileStatuses) = 0;
|
2018-01-30 18:41:45 +01:00
|
|
|
virtual void insertOrUpdateSourceDependencies(const SourceDependencies &sourceDependencies) = 0;
|
2018-02-06 11:16:29 +01:00
|
|
|
virtual Utils::optional<ProjectPartArtefact> fetchProjectPartArtefact(FilePathId sourceId) const = 0;
|
2017-08-02 16:00:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace ClangBackEnd
|