clang
6.0.0
|
Classes | |
class | CrossTranslationUnitContext |
This class is used for tools that requires cross translation unit capability. More... | |
class | IndexError |
Functions | |
llvm::Expected< llvm::StringMap< std::string > > | parseCrossTUIndex (StringRef IndexPath, StringRef CrossTUDir) |
This function parses an index file that determines which translation unit contains which definition. More... | |
std::string | createCrossTUIndexString (const llvm::StringMap< std::string > &Index) |
|
strong |
Enumerator | |
---|---|
unspecified | |
missing_index_file | |
invalid_index_format | |
multiple_definitions | |
missing_definition | |
failed_import | |
failed_to_get_external_ast | |
failed_to_generate_usr |
Definition at line 36 of file CrossTranslationUnit.h.
std::string clang::cross_tu::createCrossTUIndexString | ( | const llvm::StringMap< std::string > & | Index | ) |
Definition at line 107 of file CrossTranslationUnit.cpp.
llvm::Expected< llvm::StringMap< std::string > > clang::cross_tu::parseCrossTUIndex | ( | StringRef | IndexPath, |
StringRef | CrossTUDir | ||
) |
This function parses an index file that determines which translation unit contains which definition.
The index file format is the following: each line consists of an USR and a filepath separated by a space.
Definition at line 77 of file CrossTranslationUnit.cpp.
References Line, missing_index_file, and multiple_definitions.
Referenced by clang::cross_tu::CrossTranslationUnitContext::loadExternalAST().