ΒΆllvm::Expected<llvm::StringMap<std::string>>
parseCrossTUIndex(llvm::StringRef IndexPath)
llvm::Expected<llvm::StringMap<std::string>>
parseCrossTUIndex(llvm::StringRef IndexPath)
Description
This function parses an index file that determines which translation unit contains which definition. The IndexPath is not prefixed with CTUDir, so an absolute path is expected for consistent results. The index file format is the following: each line consists of an USR and a filepath separated by a space.
Declared at: clang/include/clang/CrossTU/CrossTranslationUnit.h:98
Parameters
- llvm::StringRef IndexPath
Returns
Returns a map where the USR is the key and the filepath is the value or an error.