clang-tools 17.0.0git
Classes | Public Member Functions | List of all members
clang::clangd::TestWorkspace Class Reference

#include <TestWorkspace.h>

Public Member Functions

void addSource (llvm::StringRef Filename, llvm::StringRef Code)
 
void addMainFile (llvm::StringRef Filename, llvm::StringRef Code)
 
std::unique_ptr< SymbolIndexindex ()
 
std::optional< ParsedASTopenFile (llvm::StringRef Filename)
 

Detailed Description

Definition at line 29 of file TestWorkspace.h.

Member Function Documentation

◆ addMainFile()

void clang::clangd::TestWorkspace::addMainFile ( llvm::StringRef  Filename,
llvm::StringRef  Code 
)
inline

Definition at line 36 of file TestWorkspace.h.

References Filename.

◆ addSource()

void clang::clangd::TestWorkspace::addSource ( llvm::StringRef  Filename,
llvm::StringRef  Code 
)
inline

Definition at line 33 of file TestWorkspace.h.

References Filename.

◆ index()

std::unique_ptr< SymbolIndex > clang::clangd::TestWorkspace::index ( )

◆ openFile()

std::optional< ParsedAST > clang::clangd::TestWorkspace::openFile ( llvm::StringRef  Filename)

The documentation for this class was generated from the following files: