clang-tools 19.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::clangd::TestTU Struct Reference

#include <TestTU.h>

Public Member Functions

ParsedAST build () const
 
std::shared_ptr< const PreambleDatapreamble (PreambleParsedCallback PreambleCallback=nullptr) const
 
ParseInputs inputs (MockFS &FS) const
 
SymbolSlab headerSymbols () const
 
RefSlab headerRefs () const
 
std::unique_ptr< SymbolIndexindex () const
 

Static Public Member Functions

static TestTU withCode (llvm::StringRef Code)
 
static TestTU withHeaderCode (llvm::StringRef HeaderCode)
 

Public Attributes

std::string Code
 
std::string Filename = "TestTU.cpp"
 
std::string HeaderCode
 
std::string HeaderFilename = "TestTU.h"
 
llvm::StringMap< std::string > AdditionalFiles
 
std::vector< std::string > ExtraArgs
 
bool PredefineMacros = false
 
TidyProvider ClangTidyProvider = {}
 
const SymbolIndexExternalIndex = nullptr
 
bool ImplicitHeaderGuard = true
 
ParseOptions ParseOpts = {}
 
bool OverlayRealFileSystemForModules = false
 
FeatureModuleSetFeatureModules = nullptr
 

Detailed Description

Definition at line 35 of file TestTU.h.

Member Function Documentation

◆ build()

ParsedAST clang::clangd::TestTU::build ( ) const

◆ headerRefs()

RefSlab clang::clangd::TestTU::headerRefs ( ) const

Definition at line 170 of file TestTU.cpp.

References clang::clangd::AST, build(), and clang::clangd::indexMainDecls().

◆ headerSymbols()

SymbolSlab clang::clangd::TestTU::headerSymbols ( ) const

Definition at line 163 of file TestTU.cpp.

References clang::clangd::AST, build(), and clang::clangd::indexHeaderSymbols().

◆ index()

std::unique_ptr< SymbolIndex > clang::clangd::TestTU::index ( ) const

Definition at line 175 of file TestTU.cpp.

References clang::clangd::AST, build(), Filename, and clang::clangd::testPath().

◆ inputs()

ParseInputs clang::clangd::TestTU::inputs ( MockFS FS) const

◆ preamble()

std::shared_ptr< const PreambleData > clang::clangd::TestTU::preamble ( PreambleParsedCallback  PreambleCallback = nullptr) const

◆ withCode()

static TestTU clang::clangd::TestTU::withCode ( llvm::StringRef  Code)
inlinestatic

Definition at line 36 of file TestTU.h.

References Code.

◆ withHeaderCode()

static TestTU clang::clangd::TestTU::withHeaderCode ( llvm::StringRef  HeaderCode)
inlinestatic

Definition at line 42 of file TestTU.h.

References HeaderCode.

Member Data Documentation

◆ AdditionalFiles

llvm::StringMap<std::string> clang::clangd::TestTU::AdditionalFiles

◆ ClangTidyProvider

TidyProvider clang::clangd::TestTU::ClangTidyProvider = {}

Definition at line 65 of file TestTU.h.

Referenced by inputs().

◆ Code

std::string clang::clangd::TestTU::Code

◆ ExternalIndex

const SymbolIndex* clang::clangd::TestTU::ExternalIndex = nullptr

Definition at line 67 of file TestTU.h.

Referenced by inputs().

◆ ExtraArgs

std::vector<std::string> clang::clangd::TestTU::ExtraArgs

◆ FeatureModules

FeatureModuleSet* clang::clangd::TestTU::FeatureModules = nullptr

Definition at line 85 of file TestTU.h.

Referenced by inputs().

◆ Filename

std::string clang::clangd::TestTU::Filename = "TestTU.cpp"

◆ HeaderCode

std::string clang::clangd::TestTU::HeaderCode

◆ HeaderFilename

std::string clang::clangd::TestTU::HeaderFilename = "TestTU.h"

Definition at line 54 of file TestTU.h.

Referenced by inputs().

◆ ImplicitHeaderGuard

bool clang::clangd::TestTU::ImplicitHeaderGuard = true

Definition at line 70 of file TestTU.h.

Referenced by inputs().

◆ OverlayRealFileSystemForModules

bool clang::clangd::TestTU::OverlayRealFileSystemForModules = false

Definition at line 83 of file TestTU.h.

Referenced by build(), inputs(), and preamble().

◆ ParseOpts

ParseOptions clang::clangd::TestTU::ParseOpts = {}

Definition at line 73 of file TestTU.h.

Referenced by build().

◆ PredefineMacros

bool clang::clangd::TestTU::PredefineMacros = false

Definition at line 63 of file TestTU.h.

Referenced by inputs().


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