Clang: Add source dependency saving to the symbol storage

The source dependencies are simply a table which connects the include file
with the included file.

Change-Id: I5454e81a2b5b98f05c7ff3f6740a6d45e01772c3
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Marco Bubke
2018-01-30 18:41:45 +01:00
parent 490523fdbb
commit 89b9dfed84
10 changed files with 164 additions and 3 deletions

View File

@@ -28,6 +28,7 @@
#include "fileinformation.h"
#include "projectpartentry.h"
#include "sourcelocationentry.h"
#include "sourcedependency.h"
#include "symbolentry.h"
#include "usedmacro.h"
@@ -52,6 +53,7 @@ public:
const FilePathIds &sourceFilePathIds) = 0;
virtual void insertOrUpdateUsedMacros(const UsedMacros &usedMacros) = 0;
virtual void insertFileInformations(const FileInformations &fileInformations) = 0;
virtual void insertOrUpdateSourceDependencies(const SourceDependencies &sourceDependencies) = 0;
};
} // namespace ClangBackEnd