clang-tools  17.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

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 172 of file TestTU.cpp.

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

◆ headerSymbols()

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

Definition at line 165 of file TestTU.cpp.

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

◆ index()

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

Definition at line 177 of file TestTU.cpp.

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

◆ inputs()

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

Definition at line 26 of file TestTU.cpp.

◆ preamble()

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

Definition at line 100 of file TestTU.cpp.

◆ withCode()

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

Definition at line 36 of file TestTU.h.

References Code.

◆ withHeaderCode()

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

Definition at line 42 of file TestTU.h.

References HeaderCode.

Member Data Documentation

◆ AdditionalFiles

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

Definition at line 57 of file TestTU.h.

Referenced by clang::clangd::TweakTest::build().

◆ ClangTidyProvider

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

Definition at line 65 of file TestTU.h.

◆ Code

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

◆ ExternalIndex

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

Definition at line 67 of file TestTU.h.

◆ ExtraArgs

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

Definition at line 60 of file TestTU.h.

Referenced by clang::clangd::TweakTest::build().

◆ FeatureModules

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

Definition at line 85 of file TestTU.h.

◆ Filename

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

◆ HeaderCode

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

Definition at line 53 of file TestTU.h.

Referenced by clang::clangd::TweakTest::build(), and withHeaderCode().

◆ HeaderFilename

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

Definition at line 54 of file TestTU.h.

◆ ImplicitHeaderGuard

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

Definition at line 70 of file TestTU.h.

◆ OverlayRealFileSystemForModules

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

Definition at line 83 of file TestTU.h.

◆ ParseOpts

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

Definition at line 73 of file TestTU.h.

◆ PredefineMacros

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

Definition at line 63 of file TestTU.h.

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