llvm/clang-tools-extra/clangd/unittests/TestTU.cpp

//===--- TestTU.cpp - Scratch source files for testing --------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "TestTU.h"
#include "CompileCommands.h"
#include "Compiler.h"
#include "Diagnostics.h"
#include "TestFS.h"
#include "index/FileIndex.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Frontend/CompilerInvocation.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/raw_ostream.h"
#include <cstdlib>

namespace clang {
namespace clangd {

ParseInputs TestTU::inputs(MockFS &FS) const {}

void initializeModuleCache(CompilerInvocation &CI) {}

void deleteModuleCache(const std::string ModuleCachePath) {}

std::shared_ptr<const PreambleData>
TestTU::preamble(PreambleParsedCallback PreambleCallback) const {}

ParsedAST TestTU::build() const {}

SymbolSlab TestTU::headerSymbols() const {}

RefSlab TestTU::headerRefs() const {}

std::unique_ptr<SymbolIndex> TestTU::index() const {}

const Symbol &findSymbol(const SymbolSlab &Slab, llvm::StringRef QName) {}

// RAII scoped class to disable TraversalScope for a ParsedAST.
class TraverseHeadersToo {};

const NamedDecl &findDecl(ParsedAST &AST, llvm::StringRef QName) {}

const NamedDecl &findDecl(ParsedAST &AST,
                          std::function<bool(const NamedDecl &)> Filter) {}

const NamedDecl &findUnqualifiedDecl(ParsedAST &AST, llvm::StringRef Name) {}

} // namespace clangd
} // namespace clang