Clang: Add insert file information to symbol storage

We use INSERT OR REPLACE because it is simpler than the insert and update
and we provide the primary key by our self.

Change-Id: I868e040918cc6c2ed183cecc746c89bec136f974
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Marco Bubke
2018-01-30 13:31:14 +01:00
parent d36fce4970
commit 95ce58cf32
7 changed files with 37 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
#pragma once
#include "fileinformation.h"
#include "projectpartentry.h"
#include "sourcelocationentry.h"
#include "symbolentry.h"
@@ -50,6 +51,7 @@ public:
virtual void updateProjectPartSources(Utils::SmallStringView projectPartName,
const FilePathIds &sourceFilePathIds) = 0;
virtual void insertOrUpdateUsedMacros(const UsedMacros &usedMacros) = 0;
virtual void insertFileInformations(const FileInformations &fileInformations) = 0;
};
} // namespace ClangBackEnd