Enable SignatureHelp (#187)

This commit is contained in:
ykiko
2025-08-23 20:52:49 +08:00
committed by GitHub
parent c43702048e
commit 52e45e1f26
12 changed files with 281 additions and 72 deletions

View File

@@ -31,7 +31,7 @@ struct Tester {
sources.add_sources(content);
}
bool compile(llvm::StringRef standard = "-std=c++20") {
void prepare(llvm::StringRef standard = "-std=c++20") {
auto command = std::format("clang++ {} {} -fms-extensions", standard, src_path);
database.update_command("fake", src_path, command);
@@ -46,6 +46,10 @@ struct Tester {
params.add_remapped_file(path, source.content);
}
}
}
bool compile(llvm::StringRef standard = "-std=c++20") {
prepare(standard);
auto info = clice::compile(params);
if(!info) {