mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-29 19:07:08 +00:00
Address nitpicking
This commit is contained in:
parent
8f41aa72de
commit
b305beb419
@ -248,9 +248,10 @@ void LaunchStdinLoop(Config* config,
|
||||
// The message may be partially deserialized.
|
||||
// Emit an error ResponseMessage if |id| is available.
|
||||
if (message) {
|
||||
lsRequestId id = message->GetRequestId();
|
||||
if (!std::holds_alternative<std::monostate>(id)) {
|
||||
Out_Error out;
|
||||
out.id = message->GetRequestId();
|
||||
if (!std::holds_alternative<std::monostate>(out.id)) {
|
||||
out.id = id;
|
||||
out.error.code = lsErrorCodes::InvalidParams;
|
||||
out.error.message = std::move(*err);
|
||||
queue->WriteStdout(IpcId::Unknown, out);
|
||||
|
@ -566,6 +566,12 @@ TEST_SUITE("Project") {
|
||||
"-lstdc++", "&/dir/myfile.cc", "-resource-dir=/w/resource_dir/",
|
||||
"-Wno-unknown-warning-option"});
|
||||
|
||||
CheckFlags(
|
||||
/* raw */ {"clang.exe"},
|
||||
/* expected */
|
||||
{"clang.exe", "-working-directory", "/dir/", "-xc++", "-std=c++14",
|
||||
"-resource-dir=/w/resource_dir/", "-Wno-unknown-warning-option"});
|
||||
|
||||
CheckFlags(
|
||||
/* raw */ {"goma", "clang"},
|
||||
/* expected */
|
||||
|
Loading…
Reference in New Issue
Block a user