logic: Index multiple indexer commands for one source file in CDB source group (issue #717)
This commit is contained in:
@@ -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
|
std::vector<FilePath> CxxIndexerCommandProvider::getAllSourceFilePaths() const
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ private:
|
|||||||
|
|
||||||
Id m_nextId;
|
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<Id, FilePath> m_idsToIndexedPaths;
|
||||||
std::map<FilePath, Id> m_indexedPathsToIds;
|
std::map<FilePath, Id> m_indexedPathsToIds;
|
||||||
|
|||||||
Reference in New Issue
Block a user