data: Fixes in indexing

* Show status update for every indexed translation unit and only once
* Save nodes in same order they were indexed
This commit is contained in:
Eberhard Graether
2017-05-09 22:55:49 +02:00
parent f4caacacf2
commit 3fdd24f038
7 changed files with 98 additions and 53 deletions
+2
View File
@@ -85,6 +85,7 @@ private:
std::string serialize(const StorageError& error) const;
std::unordered_map<std::string, StorageNode> m_nodes;
std::vector<StorageNode> m_nodesInOrder;
std::unordered_set<std::string> m_serializedFiles; // this is used to prevent duplicates (unique)
std::vector<StorageFile> m_files;
@@ -92,6 +93,7 @@ private:
std::vector<StorageSymbol> m_symbols;
std::unordered_map<std::string, StorageEdge> m_edges;
std::vector<StorageEdge> m_edgesInOrder;
std::unordered_map<std::string, StorageLocalSymbol> m_localSymbols;