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

#include <TestTU.h>

Collaboration diagram for clang::clangd::TestTU:
Collaboration graph
[legend]

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
 
TidyProvider ClangTidyProvider = {}
 
const SymbolIndexExternalIndex = nullptr
 
bool ImplicitHeaderGuard = true
 
bool OverlayRealFileSystemForModules = false
 
FeatureModuleSetFeatureModules = nullptr
 

Detailed Description

Definition at line 36 of file TestTU.h.

Member Function Documentation

◆ build()

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

◆ headerRefs()

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

Definition at line 166 of file TestTU.cpp.

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

◆ headerSymbols()

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

Definition at line 159 of file TestTU.cpp.

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

◆ index()

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

Definition at line 171 of file TestTU.cpp.

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

◆ inputs()

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

Definition at line 28 of file TestTU.cpp.

◆ preamble()

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

Definition at line 95 of file TestTU.cpp.

◆ withCode()

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

Definition at line 37 of file TestTU.h.

References Code.

◆ withHeaderCode()

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

Definition at line 43 of file TestTU.h.

References HeaderCode.

Member Data Documentation

◆ AdditionalFiles

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

Definition at line 58 of file TestTU.h.

◆ ClangTidyProvider

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

Definition at line 63 of file TestTU.h.

◆ Code

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

Definition at line 50 of file TestTU.h.

Referenced by clang::clangd::TestWorkspace::openFile(), and withCode().

◆ ExternalIndex

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

Definition at line 65 of file TestTU.h.

◆ ExtraArgs

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

Definition at line 61 of file TestTU.h.

◆ FeatureModules

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

Definition at line 80 of file TestTU.h.

◆ Filename

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

Definition at line 51 of file TestTU.h.

Referenced by index(), and clang::clangd::TestWorkspace::openFile().

◆ HeaderCode

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

Definition at line 54 of file TestTU.h.

Referenced by withHeaderCode().

◆ HeaderFilename

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

Definition at line 55 of file TestTU.h.

◆ ImplicitHeaderGuard

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

Definition at line 68 of file TestTU.h.

◆ OverlayRealFileSystemForModules

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

Definition at line 78 of file TestTU.h.


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