clang 20.0.0git
Namespaces | Macros | Functions
CrossTranslationUnit.cpp File Reference
#include "clang/CrossTU/CrossTranslationUnit.h"
#include "clang/AST/ASTImporter.h"
#include "clang/AST/Decl.h"
#include "clang/AST/ParentMapContext.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/CrossTU/CrossTUDiagnostic.h"
#include "clang/Frontend/ASTUnit.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Index/USRGeneration.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/YAMLParser.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TargetParser/Triple.h"
#include <algorithm>
#include <fstream>
#include <optional>
#include <sstream>
#include <tuple>

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::cross_tu
 

Macros

#define DEBUG_TYPE   "CrossTranslationUnit"
 

Functions

static bool clang::cross_tu::parseCrossTUIndexItem (StringRef LineRef, StringRef &LookupName, StringRef &FilePath)
 Parse one line of the input CTU index file.
 
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.
 
std::string clang::cross_tu::createCrossTUIndexString (const llvm::StringMap< std::string > &Index)
 
bool clang::cross_tu::shouldImport (const VarDecl *VD, const ASTContext &ACtx)
 Returns true if it makes sense to import a foreign variable definition.
 
static bool clang::cross_tu::hasBodyOrInit (const FunctionDecl *D, const FunctionDecl *&DefD)
 
static bool clang::cross_tu::hasBodyOrInit (const VarDecl *D, const VarDecl *&DefD)
 
template<typename T >
static bool clang::cross_tu::hasBodyOrInit (const T *D)
 
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.
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "CrossTranslationUnit"

Definition at line 41 of file CrossTranslationUnit.cpp.