16#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_UNITTESTS_TESTWORKSPACE_H
17#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_UNITTESTS_TESTWORKSPACE_H
21#include "llvm/ADT/StringRef.h"
34 addInput(
Filename.str(), {Code.str(), false});
37 addInput(
Filename.str(), {Code.str(), true});
40 std::unique_ptr<SymbolIndex>
index();
47 bool IsMainFile =
false;
49 llvm::StringMap<SourceFile> Inputs;
52 void addInput(llvm::StringRef
Filename,
const SourceFile &Input);
std::string Filename
Filename as a string.
std::optional< ParsedAST > openFile(llvm::StringRef Filename)
void addMainFile(llvm::StringRef Filename, llvm::StringRef Code)
void addSource(llvm::StringRef Filename, llvm::StringRef Code)
std::unique_ptr< SymbolIndex > index()
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//