Files
Language-Server/include/vls/modules/GccArtifacts.hpp
T
faumaray da8003f6d4 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.
2026-12-05 14:06:50 +03:00

40 lines
1.3 KiB
C++

#pragma once
#include <vls/modules/ArtifactCache.hpp>
#include <chrono>
#include <cstddef>
#include <expected>
#include <filesystem>
#include <functional>
#include <optional>
#include <string>
#include <vector>
namespace vls::modules {
struct ModuleCommand {
std::filesystem::path working_directory;
// Absolute compiler path first. Arguments must not depend on the caller's
// working directory: the work runs in a private directory.
std::vector<std::string> arguments;
};
using ModuleCommandLookup = std::function<std::optional<ModuleCommand>(const Build::ContextKey &)>;
struct GccArtifactOptions {
std::chrono::milliseconds deadline{60000};
std::size_t max_output_bytes{64 * 1024 * 1024};
std::size_t max_artifact_bytes{512 * 1024 * 1024};
};
// Real GCC module artifact production for one planned unit: runs the looked-up
// command in a private working directory with a private module cache, requires
// exactly one verified CMI and copies it to `output`. Tool authority, the
// command's environment and its provenance are the caller's responsibility.
[[nodiscard]] ArtifactWork
gcc_module_artifact_work(ModuleCommandLookup lookup,
GccArtifactOptions options = GccArtifactOptions{});
} // namespace vls::modules