Go to the documentation of this file.
17 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_UNITTESTS_TESTTU_H
18 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_UNITTESTS_TESTTU_H
20 #include "../TidyProvider.h"
26 #include "llvm/ADT/StringMap.h"
91 std::shared_ptr<const PreambleData>
96 std::unique_ptr<SymbolIndex>
index()
const;
105 std::function<
bool(
const NamedDecl &)> Filter);
112 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_UNITTESTS_TESTTU_H
std::vector< std::string > ExtraArgs
std::string HeaderFilename
const NamedDecl & findDecl(ParsedAST &AST, llvm::StringRef QName)
A FeatureModuleSet is a collection of feature modules installed in clangd.
SymbolSlab headerSymbols() const
RefSlab headerRefs() const
An efficient structure of storing large set of symbol references in memory.
std::shared_ptr< const PreambleData > preamble(PreambleParsedCallback PreambleCallback=nullptr) const
const NamedDecl & findUnqualifiedDecl(ParsedAST &AST, llvm::StringRef Name)
const SymbolIndex * ExternalIndex
ParseInputs inputs(MockFS &FS) const
static TestTU withHeaderCode(llvm::StringRef HeaderCode)
TidyProvider ClangTidyProvider
llvm::unique_function< void(tidy::ClangTidyOptions &, llvm::StringRef) const > TidyProvider
A factory to modify a tidy::ClangTidyOptions.
The class presents a C++ symbol, e.g.
bool OverlayRealFileSystemForModules
static TestTU withCode(llvm::StringRef Code)
Interface for symbol indexes that can be used for searching or matching symbols among a set of symbol...
std::unique_ptr< SymbolIndex > index() const
FeatureModuleSet * FeatureModules
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Stores and provides access to parsed AST.
An immutable symbol container that stores a set of symbols.
std::function< void(ASTContext &, Preprocessor &, const CanonicalIncludes &)> PreambleParsedCallback
llvm::StringMap< std::string > AdditionalFiles
const Symbol & findSymbol(const SymbolSlab &Slab, llvm::StringRef QName)