Implement the VLS roadmap on the native VBS build
Native VBS and CMake builds of the server and every registered suite: protocol and document sync, VBS/compdb providers, stock GCC diagnostics (including in-process default profile preparation), the stock occurrence observer and hover/definition, the bounded Scheduler, C++ module graph, scan and artifact cache with real CMI production, the context-aware symbol index with schema-2 snapshot migration, navigation and guarded rename, reflection provenance with splice-origin extraction, index-backed completion and signature help, live GCC worker control with a registered DAP suite, and the Neovim and VS Code clients. VoidLibrary follows main. The private GCC 16.2.0 frontend is reproduced from the versioned patches and verified stepping reflection/template code with projected values 17/34 and 41/82.
This commit is contained in:
1 parent
ca04975d54
commit
da8003f6d4
310 files changed
+47552
-480
No files matched your search
@@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
|
||||
#include <vls/modules/ModuleGraph.hpp>
|
||||
|
||||
#include <chrono>
|
||||
#include <cstddef>
|
||||
#include <expected>
|
||||
#include <filesystem>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <stop_token>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace vls::modules {
|
||||
|
||||
struct ScanCommand {
|
||||
std::filesystem::path working_directory;
|
||||
// Absolute compiler first. Must contain exactly one absolute -fdeps-file=.
|
||||
std::vector<std::string> arguments;
|
||||
ExpectedOutput output;
|
||||
};
|
||||
|
||||
using ScanCommandLookup = std::function<std::optional<ScanCommand>(const Build::ContextKey &)>;
|
||||
|
||||
struct ScanProduct {
|
||||
std::string p1689;
|
||||
std::optional<ScanRule> rule;
|
||||
};
|
||||
|
||||
struct ScanOptions {
|
||||
std::filesystem::path directory; // private output directory
|
||||
std::chrono::milliseconds deadline{60000};
|
||||
std::size_t max_bytes{max_scan_bytes};
|
||||
};
|
||||
|
||||
// Runs one checked P1689 scan command and decodes its dependency file. The
|
||||
// product is filled only on success; a failure throws so the scheduler records
|
||||
// a failed task. No compiler option comes from project metadata here.
|
||||
[[nodiscard]] std::function<std::string(std::stop_token)>
|
||||
gcc_module_scan_work(ScanCommandLookup lookup, Build::ContextKey context,
|
||||
std::shared_ptr<ScanProduct> product, ScanOptions options = ScanOptions{});
|
||||
|
||||
} // namespace vls::modules
|
||||
Reference in new issue
Block a user