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);
llvm::SmallString< 256U > Name
A FeatureModuleSet is a collection of feature modules installed in clangd.
Stores and provides access to parsed AST.
An efficient structure of storing large set of symbol references in memory.
Interface for symbol indexes that can be used for searching or matching symbols among a set of symbol...
An immutable symbol container that stores a set of symbols.
std::function< void(CapturedASTCtx ASTCtx, std::shared_ptr< const include_cleaner::PragmaIncludes >)> PreambleParsedCallback
const NamedDecl & findDecl(ParsedAST &AST, llvm::StringRef QName)
const NamedDecl & findUnqualifiedDecl(ParsedAST &AST, llvm::StringRef Name)
const Symbol & findSymbol(const SymbolSlab &Slab, llvm::StringRef QName)
llvm::unique_function< void(tidy::ClangTidyOptions &, llvm::StringRef) const > TidyProvider
A factory to modify a tidy::ClangTidyOptions.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
The class presents a C++ symbol, e.g.
std::vector< std::string > ExtraArgs
TidyProvider ClangTidyProvider
static TestTU withHeaderCode(llvm::StringRef HeaderCode)
ParseInputs inputs(MockFS &FS) const
RefSlab headerRefs() const
std::string HeaderFilename
SymbolSlab headerSymbols() const
static TestTU withCode(llvm::StringRef Code)
std::shared_ptr< const PreambleData > preamble(PreambleParsedCallback PreambleCallback=nullptr) const
bool OverlayRealFileSystemForModules
const SymbolIndex * ExternalIndex
llvm::StringMap< std::string > AdditionalFiles
FeatureModuleSet * FeatureModules
std::unique_ptr< SymbolIndex > index() const