ccls/src/pipeline.hh

36 lines
895 B
C++
Raw Normal View History

#pragma once
2018-05-28 00:50:02 +00:00
#include "method.h"
#include "query.h"
#include "timer.h"
2018-05-28 00:50:02 +00:00
#include <string>
#include <unordered_map>
2018-05-28 00:50:02 +00:00
#include <vector>
class DiagnosticsEngine;
struct VFS;
struct Project;
struct WorkingFiles;
2018-05-28 00:50:02 +00:00
struct lsBaseOutMessage;
2018-05-28 00:50:02 +00:00
namespace ccls::pipeline {
void Init();
void LaunchStdin(std::unordered_map<MethodType, Timer>* request_times);
void LaunchStdout(std::unordered_map<MethodType, Timer>* request_times);
2018-04-04 06:05:41 +00:00
void Indexer_Main(DiagnosticsEngine* diag_engine,
VFS* vfs,
2017-12-29 15:56:34 +00:00
Project* project,
2018-05-28 00:50:02 +00:00
WorkingFiles* working_files);
void MainLoop();
void Index(const std::string& path,
const std::vector<std::string>& args,
bool is_interactive,
lsRequestId id = {});
2018-05-28 00:50:02 +00:00
std::optional<std::string> LoadCachedFileContents(const std::string& path);
void WriteStdout(MethodType method, lsBaseOutMessage& response);
}