clang-tools 20.0.0git
Public Member Functions | List of all members
clang::clangd::CapturedASTCtx Struct Reference

The captured AST context. More...

#include <Preamble.h>

Public Member Functions

 CapturedASTCtx (CompilerInstance &Clang)
 
 CapturedASTCtx (const CapturedASTCtx &)=delete
 
CapturedASTCtxoperator= (const CapturedASTCtx &)=delete
 
 CapturedASTCtx (CapturedASTCtx &&)=default
 
CapturedASTCtxoperator= (CapturedASTCtx &&)=default
 
ASTContext & getASTContext ()
 
Preprocessor & getPreprocessor ()
 
CompilerInvocation & getCompilerInvocation ()
 
FileManager & getFileManager ()
 
void setStatCache (std::shared_ptr< PreambleFileStatusCache > StatCache)
 

Detailed Description

The captured AST context.

Keeps necessary structs for an ASTContext and Preprocessor alive. This enables consuming them after context that produced the AST is gone. (e.g. indexing a preamble ast on a separate thread). ASTContext stored inside is still not thread-safe.

Definition at line 59 of file Preamble.h.

Constructor & Destructor Documentation

◆ CapturedASTCtx() [1/3]

clang::clangd::CapturedASTCtx::CapturedASTCtx ( CompilerInstance &  Clang)
inline

Definition at line 61 of file Preamble.h.

◆ CapturedASTCtx() [2/3]

clang::clangd::CapturedASTCtx::CapturedASTCtx ( const CapturedASTCtx )
delete

◆ CapturedASTCtx() [3/3]

clang::clangd::CapturedASTCtx::CapturedASTCtx ( CapturedASTCtx &&  )
default

Member Function Documentation

◆ getASTContext()

ASTContext & clang::clangd::CapturedASTCtx::getASTContext ( )
inline

Definition at line 73 of file Preamble.h.

◆ getCompilerInvocation()

CompilerInvocation & clang::clangd::CapturedASTCtx::getCompilerInvocation ( )
inline

Definition at line 75 of file Preamble.h.

◆ getFileManager()

FileManager & clang::clangd::CapturedASTCtx::getFileManager ( )
inline

Definition at line 76 of file Preamble.h.

◆ getPreprocessor()

Preprocessor & clang::clangd::CapturedASTCtx::getPreprocessor ( )
inline

Definition at line 74 of file Preamble.h.

◆ operator=() [1/2]

CapturedASTCtx & clang::clangd::CapturedASTCtx::operator= ( CapturedASTCtx &&  )
default

◆ operator=() [2/2]

CapturedASTCtx & clang::clangd::CapturedASTCtx::operator= ( const CapturedASTCtx )
delete

◆ setStatCache()

void clang::clangd::CapturedASTCtx::setStatCache ( std::shared_ptr< PreambleFileStatusCache StatCache)
inline

Definition at line 77 of file Preamble.h.


The documentation for this struct was generated from the following file: