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.
35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <vls/modules/ModuleGraph.hpp>
|
|
|
|
#include <expected>
|
|
#include <filesystem>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace vls::modules {
|
|
|
|
enum class ScanCommandError {
|
|
invalid_context,
|
|
missing_source,
|
|
duplicate_source,
|
|
relative_dependency_file,
|
|
limit
|
|
};
|
|
|
|
struct ScanInvocation {
|
|
// Driver first, then the original checked arguments with the scan options
|
|
// appended. The owning source is the final operand.
|
|
std::vector<std::string> arguments;
|
|
};
|
|
|
|
// Derives a P1689 scan command from a checked compiler context. The driver and
|
|
// owning source come from the context itself; the dependency file must be
|
|
// absolute. Existing output, preprocess and dependency options are removed so
|
|
// project metadata cannot select or duplicate the scan outputs.
|
|
[[nodiscard]] std::expected<ScanInvocation, ScanCommandError>
|
|
build_scan_invocation(const Build::BuildContext &context, const ExpectedOutput &output,
|
|
const std::filesystem::path &dependency_file);
|
|
|
|
} // namespace vls::modules
|