ccls/src/pipeline.hh

35 lines
772 B
C++
Raw Normal View History

#pragma once
2018-05-28 00:50:02 +00:00
#include "method.h"
#include "query.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();
void LaunchStdout();
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);
}