logic: Index multiple indexer commands for one source file in CDB source group (issue #717)

This commit is contained in:
Eberhard Graether
2019-08-05 11:35:09 +02:00
parent b35d4657d5
commit 2f21848de8
2 changed files with 2 additions and 2 deletions
@@ -102,7 +102,7 @@ void CxxIndexerCommandProvider::addCommand(const std::shared_ptr<IndexerCommandC
}
}
m_commands[command->getSourceFilePath()] = representation;
m_commands.emplace(command->getSourceFilePath(), representation);
}
std::vector<FilePath> CxxIndexerCommandProvider::getAllSourceFilePaths() const
@@ -39,7 +39,7 @@ private:
Id m_nextId;
std::map<FilePath, std::shared_ptr<CommandRepresentation>> m_commands;
std::multimap<FilePath, std::shared_ptr<CommandRepresentation>> m_commands;
std::map<Id, FilePath> m_idsToIndexedPaths;
std::map<FilePath, Id> m_indexedPathsToIds;