Clang: Add symbol indexer

Change-Id: I8ff879631ae022bc870431628be002903360369c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2017-08-02 16:00:55 +02:00
parent f0e00a8c25
commit 81d43b8a11
15 changed files with 469 additions and 10 deletions

View File

@@ -70,6 +70,15 @@ public:
uint line = 0;
uint column = 0;
SymbolType symbolType;
friend bool operator==(const SourceLocationEntry &first, const SourceLocationEntry &second)
{
return first.symbolId == second.symbolId
&& first.fileId == second.fileId
&& first.line == second.line
&& first.column == second.column
&& first.symbolType == second.symbolType;
}
};
using SourceLocationEntries = std::vector<SourceLocationEntry>;