Files
clice/include/LSP/Scheduler.h
2024-07-09 16:03:53 +08:00

19 lines
383 B
C++

#pragma once
#include <Support/Async.h>
#include <Clang/ParsedAST.h>
namespace clice {
/// a class used to manage all resources for the LSP server
class Scheduler {
private:
llvm::StringMap<std::unique_ptr<ParsedAST>> parsedASTs;
public:
// update the AST for a given file
Task<void> update(std::string_view path, std::string_view content);
};
} // namespace clice