clang-tools  11.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 () 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
 
llvm::Optional< std::string > ClangTidyChecks
 
llvm::Optional< std::string > ClangTidyWarningsAsErrors
 
const SymbolIndexExternalIndex = nullptr
 
bool ImplicitHeaderGuard = true
 

Detailed Description

Definition at line 34 of file TestTU.h.

Member Function Documentation

◆ build()

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

◆ headerRefs()

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

Definition at line 129 of file TestTU.cpp.

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

◆ headerSymbols()

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

Definition at line 122 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 134 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 ( ) const

◆ withCode()

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

Definition at line 35 of file TestTU.h.

References Code.

◆ withHeaderCode()

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

Definition at line 41 of file TestTU.h.

References HeaderCode.

Member Data Documentation

◆ AdditionalFiles

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

Definition at line 56 of file TestTU.h.

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

◆ ClangTidyChecks

llvm::Optional<std::string> clang::clangd::TestTU::ClangTidyChecks

Definition at line 61 of file TestTU.h.

Referenced by inputs().

◆ ClangTidyWarningsAsErrors

llvm::Optional<std::string> clang::clangd::TestTU::ClangTidyWarningsAsErrors

Definition at line 62 of file TestTU.h.

Referenced by inputs().

◆ Code

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

Definition at line 48 of file TestTU.h.

Referenced by clang::clangd::TweakTest::apply(), build(), inputs(), and withCode().

◆ ExternalIndex

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

Definition at line 64 of file TestTU.h.

Referenced by inputs().

◆ ExtraArgs

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

Definition at line 59 of file TestTU.h.

Referenced by clang::clangd::TweakTest::apply(), and inputs().

◆ Filename

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

Definition at line 49 of file TestTU.h.

Referenced by clang::clangd::TweakTest::apply(), build(), index(), inputs(), and preamble().

◆ HeaderCode

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

Definition at line 52 of file TestTU.h.

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

◆ HeaderFilename

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

Definition at line 53 of file TestTU.h.

Referenced by inputs().

◆ ImplicitHeaderGuard

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

Definition at line 67 of file TestTU.h.

Referenced by inputs().


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