mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-21 23:25:07 +00:00
Misc
This commit is contained in:
parent
353b398a73
commit
9a6851c6a5
@ -9,6 +9,7 @@
|
||||
#include "test.hh"
|
||||
#include "working_files.hh"
|
||||
|
||||
#include <clang/Basic/Version.h>
|
||||
#include <llvm/Support/CommandLine.h>
|
||||
#include <llvm/Support/CrashRecoveryContext.h>
|
||||
#include <llvm/Support/FileSystem.h>
|
||||
@ -57,6 +58,9 @@ void CloseLog() { fclose(ccls::log::file); }
|
||||
int main(int argc, char **argv) {
|
||||
TraceMe();
|
||||
sys::PrintStackTraceOnErrorSignal(argv[0]);
|
||||
cl::SetVersionPrinter([](raw_ostream &OS) {
|
||||
OS << clang::getClangToolFullVersion("ccls") << "\n";
|
||||
});
|
||||
|
||||
for (auto &I : TopLevelSubCommand->OptionsMap)
|
||||
if (I.second->Category != &C)
|
||||
|
@ -9,18 +9,13 @@
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
namespace ccls {
|
||||
struct CompletionManager;
|
||||
struct Config;
|
||||
struct GroupMatch;
|
||||
struct VFS;
|
||||
struct IncludeComplete;
|
||||
struct MultiQueueWaiter;
|
||||
struct Project;
|
||||
struct DB;
|
||||
struct WorkingFile;
|
||||
struct WorkingFiles;
|
||||
|
||||
@ -184,12 +179,12 @@ struct ReplyOnce {
|
||||
};
|
||||
|
||||
struct MessageHandler {
|
||||
CompletionManager *clang_complete = nullptr;
|
||||
DB *db = nullptr;
|
||||
IncludeComplete *include_complete = nullptr;
|
||||
Project *project = nullptr;
|
||||
VFS *vfs = nullptr;
|
||||
WorkingFiles *wfiles = nullptr;
|
||||
CompletionManager *clang_complete = nullptr;
|
||||
IncludeComplete *include_complete = nullptr;
|
||||
|
||||
llvm::StringMap<std::function<void(Reader &)>> method2notification;
|
||||
llvm::StringMap<std::function<void(Reader &, ReplyOnce &)>> method2request;
|
||||
|
Loading…
Reference in New Issue
Block a user