clang  14.0.0git
Classes | Namespaces | Typedefs | Enumerations | Functions
CrossTranslationUnit.h File Reference
#include "clang/AST/ASTImporterSharedState.h"
#include "clang/Analysis/MacroExpansionContext.h"
#include "clang/Basic/LLVM.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/Path.h"
Include dependency graph for CrossTranslationUnit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  clang::cross_tu::IndexError
 
class  clang::cross_tu::CrossTranslationUnitContext
 This class is used for tools that requires cross translation unit capability. More...
 

Namespaces

 clang
 
 clang::cross_tu
 

Typedefs

using clang::cross_tu::InvocationListTy = llvm::StringMap< llvm::SmallVector< std::string, 32 > >
 

Enumerations

enum  clang::cross_tu::index_error_code {
  clang::cross_tu::index_error_code::success = 0, clang::cross_tu::index_error_code::unspecified = 1, clang::cross_tu::index_error_code::missing_index_file, clang::cross_tu::index_error_code::invalid_index_format,
  clang::cross_tu::index_error_code::multiple_definitions, clang::cross_tu::index_error_code::missing_definition, clang::cross_tu::index_error_code::failed_import, clang::cross_tu::index_error_code::failed_to_get_external_ast,
  clang::cross_tu::index_error_code::failed_to_generate_usr, clang::cross_tu::index_error_code::triple_mismatch, clang::cross_tu::index_error_code::lang_mismatch, clang::cross_tu::index_error_code::lang_dialect_mismatch,
  clang::cross_tu::index_error_code::load_threshold_reached, clang::cross_tu::index_error_code::invocation_list_ambiguous, clang::cross_tu::index_error_code::invocation_list_file_not_found, clang::cross_tu::index_error_code::invocation_list_empty,
  clang::cross_tu::index_error_code::invocation_list_wrong_format, clang::cross_tu::index_error_code::invocation_list_lookup_unsuccessful
}
 

Functions

llvm::Expected< llvm::StringMap< std::string > > clang::cross_tu::parseCrossTUIndex (StringRef IndexPath)
 This function parses an index file that determines which translation unit contains which definition. More...
 
std::string clang::cross_tu::createCrossTUIndexString (const llvm::StringMap< std::string > &Index)
 
llvm::Expected< InvocationListTy > clang::cross_tu::parseInvocationList (StringRef FileContent, llvm::sys::path::Style PathStyle=llvm::sys::path::Style::posix)
 Parse the YAML formatted invocation list file content FileContent. More...
 
bool clang::cross_tu::containsConst (const VarDecl *VD, const ASTContext &ACtx)