1#include "nixd-config.h"
6#include <llvm/Support/CommandLine.h>
12using namespace llvm::cl;
23 desc(
"Input JSON stream encoding"),
25 clEnumValN(JSONStreamStyle::Standard,
"standard",
"usual LSP protocol"),
26 clEnumValN(JSONStreamStyle::Delimited,
"delimited",
27 "messages delimited by `// -----` lines, "
28 "with // comment support")),
29 init(JSONStreamStyle::Standard),
35 "log",
desc(
"Verbosity of log messages written to stderr"),
37 clEnumValN(Logger::Level::Error,
"error",
"Error messages only"),
38 clEnumValN(Logger::Level::Info,
"info",
"High level execution tracing"),
39 clEnumValN(Logger::Level::Debug,
"debug",
"Debugging details"),
40 clEnumValN(Logger::Level::Verbose,
"verbose",
"Low level details")),
41 init(Logger::Level::Info),
cat(Misc)};
53 OS <<
"nixd-attrset-eval, version: ";
64 "NIXD_NIXPKGS_EVAL_FLAGS");
68 LogLevel = Logger::Level::Verbose;
78 auto Out = std::make_unique<lspserver::OutboundPort>(
PrettyPrint);
Dedicated worker for evaluating attrset.
Interface to allow custom logging in clangd.
Only one LoggingSession can be active at a time.
Main RPC class for attrset provider.
Whether current platform treats paths case insensitively.
bool fromJSON(const llvm::json::Value &Params, Configuration::Diagnostic &R, llvm::json::Path P)
llvm::cl::opt< bool > LitTest
Indicating that we are in lit-test mode.
int main(int Argc, const char *Argv[])