Go to the documentation of this file.
17 #ifndef LLVM_CLANG_TOOLS_EXTRA_UNITTESTS_CLANGD_TESTTU_H
18 #define LLVM_CLANG_TOOLS_EXTRA_UNITTESTS_CLANGD_TESTTU_H
25 #include "llvm/ADT/StringMap.h"
26 #include "gtest/gtest.h"
72 std::shared_ptr<const PreambleData>
preamble()
const;
76 std::unique_ptr<SymbolIndex>
index()
const;
85 std::function<
bool(
const NamedDecl &)> Filter);
92 #endif // LLVM_CLANG_TOOLS_EXTRA_UNITTESTS_CLANGD_TESTTU_H
std::vector< std::string > ExtraArgs
std::string HeaderFilename
const NamedDecl & findDecl(ParsedAST &AST, llvm::StringRef QName)
llvm::Optional< std::string > ClangTidyChecks
SymbolSlab headerSymbols() const
RefSlab headerRefs() const
An efficient structure of storing large set of symbol references in memory.
const NamedDecl & findUnqualifiedDecl(ParsedAST &AST, llvm::StringRef Name)
const SymbolIndex * ExternalIndex
ParseInputs inputs(MockFS &FS) const
static TestTU withHeaderCode(llvm::StringRef HeaderCode)
std::shared_ptr< const PreambleData > preamble() const
The class presents a C++ symbol, e.g.
static constexpr llvm::StringLiteral Name
static TestTU withCode(llvm::StringRef Code)
Interface for symbol indexes that can be used for searching or matching symbols among a set of symbol...
llvm::Optional< std::string > ClangTidyWarningsAsErrors
std::unique_ptr< SymbolIndex > index() const
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Stores and provides access to parsed AST.
An immutable symbol container that stores a set of symbols.
llvm::StringMap< std::string > AdditionalFiles
const Symbol & findSymbol(const SymbolSlab &Slab, llvm::StringRef QName)