clang-tools 20.0.0git
|
#include <TestTU.h>
Public Member Functions | |
ParsedAST | build () const |
std::shared_ptr< const PreambleData > | preamble (PreambleParsedCallback PreambleCallback=nullptr) const |
ParseInputs | inputs (MockFS &FS) const |
SymbolSlab | headerSymbols () const |
RefSlab | headerRefs () const |
std::unique_ptr< SymbolIndex > | index () 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 SymbolIndex * | ExternalIndex = nullptr |
bool | ImplicitHeaderGuard = true |
ParseOptions | ParseOpts = {} |
bool | OverlayRealFileSystemForModules = false |
FeatureModuleSet * | FeatureModules = nullptr |
ParsedAST clang::clangd::TestTU::build | ( | ) | const |
Definition at line 114 of file TestTU.cpp.
References AdditionalFiles, clang::clangd::AST, clang::clangd::ParsedAST::build(), clang::clangd::buildCompilerInvocation(), clang::clangd::buildPreamble(), CI, Code, clang::clangd::deleteModuleCache(), Filename, HeaderCode, clang::clangd::initializeModuleCache(), inputs(), OverlayRealFileSystemForModules, ParseOpts, clang::clangd::Preamble, and clang::clangd::testPath().
Referenced by clang::clangd::TweakTest::apply(), clang::clangd::TweakTest::build(), headerRefs(), headerSymbols(), clang::clangd::TestWorkspace::index(), index(), and clang::clangd::TestWorkspace::openFile().
RefSlab clang::clangd::TestTU::headerRefs | ( | ) | const |
Definition at line 170 of file TestTU.cpp.
References clang::clangd::AST, build(), and clang::clangd::indexMainDecls().
SymbolSlab clang::clangd::TestTU::headerSymbols | ( | ) | const |
Definition at line 163 of file TestTU.cpp.
References clang::clangd::AST, build(), and clang::clangd::indexHeaderSymbols().
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().
ParseInputs clang::clangd::TestTU::inputs | ( | MockFS & | FS | ) | const |
Definition at line 26 of file TestTU.cpp.
References AdditionalFiles, ClangTidyProvider, Code, ExternalIndex, ExtraArgs, FeatureModules, Filename, clang::clangd::CommandMangler::forTests(), HeaderCode, HeaderFilename, ImplicitHeaderGuard, OverlayRealFileSystemForModules, PredefineMacros, clang::clangd::testPath(), and clang::clangd::testRoot().
Referenced by build(), and preamble().
std::shared_ptr< const PreambleData > clang::clangd::TestTU::preamble | ( | PreambleParsedCallback | PreambleCallback = nullptr | ) | const |
Definition at line 100 of file TestTU.cpp.
References clang::clangd::buildCompilerInvocation(), clang::clangd::buildPreamble(), CI, clang::clangd::deleteModuleCache(), Filename, clang::clangd::initializeModuleCache(), inputs(), OverlayRealFileSystemForModules, and clang::clangd::testPath().
Referenced by clang::clangd::TestWorkspace::index().
|
inlinestatic |
|
inlinestatic |
Definition at line 42 of file TestTU.h.
References HeaderCode.
llvm::StringMap<std::string> clang::clangd::TestTU::AdditionalFiles |
Definition at line 57 of file TestTU.h.
Referenced by clang::clangd::TweakTest::apply(), build(), clang::clangd::TweakTest::build(), and inputs().
TidyProvider clang::clangd::TestTU::ClangTidyProvider = {} |
std::string clang::clangd::TestTU::Code |
Definition at line 49 of file TestTU.h.
Referenced by clang::clangd::TweakTest::apply(), build(), clang::clangd::TweakTest::build(), clang::clangd::TestWorkspace::index(), inputs(), clang::clangd::TestWorkspace::openFile(), and withCode().
const SymbolIndex* clang::clangd::TestTU::ExternalIndex = nullptr |
std::vector<std::string> clang::clangd::TestTU::ExtraArgs |
Definition at line 60 of file TestTU.h.
Referenced by clang::clangd::TweakTest::apply(), clang::clangd::TweakTest::build(), and inputs().
FeatureModuleSet* clang::clangd::TestTU::FeatureModules = nullptr |
std::string clang::clangd::TestTU::Filename = "TestTU.cpp" |
Definition at line 50 of file TestTU.h.
Referenced by clang::clangd::TweakTest::apply(), build(), clang::clangd::TweakTest::build(), clang::clangd::TestWorkspace::index(), index(), inputs(), clang::clangd::TestWorkspace::openFile(), and preamble().
std::string clang::clangd::TestTU::HeaderCode |
Definition at line 53 of file TestTU.h.
Referenced by clang::clangd::TweakTest::apply(), build(), clang::clangd::TweakTest::build(), inputs(), and withHeaderCode().
std::string clang::clangd::TestTU::HeaderFilename = "TestTU.h" |
bool clang::clangd::TestTU::ImplicitHeaderGuard = true |
bool clang::clangd::TestTU::OverlayRealFileSystemForModules = false |
Definition at line 83 of file TestTU.h.
Referenced by build(), inputs(), and preamble().
ParseOptions clang::clangd::TestTU::ParseOpts = {} |
bool clang::clangd::TestTU::PredefineMacros = false |