clang-tools  14.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 ()
 
Optional< ParsedASTopenFile (llvm::StringRef Filename)
 

Detailed Description

Definition at line 30 of file TestWorkspace.h.

Member Function Documentation

◆ addMainFile()

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

Definition at line 37 of file TestWorkspace.h.

References Filename.

◆ addSource()

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

Definition at line 34 of file TestWorkspace.h.

References Filename.

◆ index()

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

Definition at line 15 of file TestWorkspace.cpp.

References Index.

◆ openFile()

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

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