|
clang-tools 22.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 115 of file TestTU.cpp.
References AdditionalFiles, clang::clangd::AST, clang::clangd::ParsedAST::build(), clang::clangd::buildCompilerInvocation(), clang::clangd::buildPreamble(), Code, clang::clangd::deleteModuleCache(), Filename, HeaderCode, clang::clangd::initializeModuleCache(), inputs(), OverlayRealFileSystemForModules, ParseOpts, clang::clangd::Preamble, clang::clangd::StoreDiags::take(), and clang::clangd::testPath().
Referenced by clang::clangd::TweakTest::apply(), clang::clangd::TweakTest::build(), headerRefs(), headerSymbols(), and index().
| RefSlab clang::clangd::TestTU::headerRefs | ( | ) | const |
Definition at line 171 of file TestTU.cpp.
References clang::clangd::AST, build(), and clang::clangd::indexMainDecls().
| SymbolSlab clang::clangd::TestTU::headerSymbols | ( | ) | const |
Definition at line 164 of file TestTU.cpp.
References clang::clangd::AST, build(), clang::clangd::indexHeaderSymbols(), and clang::clangd::Preamble.
| std::unique_ptr< SymbolIndex > clang::clangd::TestTU::index | ( | ) | const |
Definition at line 176 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 27 of file TestTU.cpp.
References AdditionalFiles, clang::clangd::ParseInputs::ClangTidyProvider, ClangTidyProvider, Code, clang::clangd::ParseInputs::CompileCommand, clang::clangd::ParseInputs::Contents, ExternalIndex, ExtraArgs, clang::clangd::ParseInputs::FeatureModules, FeatureModules, Filename, clang::clangd::MockFS::Files, clang::clangd::CommandMangler::forTests(), HeaderCode, HeaderFilename, ImplicitHeaderGuard, clang::clangd::ParseInputs::Index, clang::clangd::ParseInputs::Opts, clang::clangd::MockFS::OverlayRealFileSystemForModules, OverlayRealFileSystemForModules, PredefineMacros, clang::clangd::testPath(), clang::clangd::testRoot(), and clang::clangd::ParseInputs::TFS.
Referenced by build(), and preamble().
| std::shared_ptr< const PreambleData > clang::clangd::TestTU::preamble | ( | PreambleParsedCallback | PreambleCallback = nullptr | ) | const |
Definition at line 101 of file TestTU.cpp.
References clang::clangd::buildCompilerInvocation(), clang::clangd::buildPreamble(), clang::clangd::deleteModuleCache(), Filename, clang::clangd::initializeModuleCache(), inputs(), OverlayRealFileSystemForModules, and clang::clangd::testPath().
|
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(), inputs(), 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(), index(), inputs(), 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 |