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:
faumaray committed 2026-12-05 14:06:50 +03:00
1 parent ca04975d54
commit da8003f6d4
310 files changed
+47552 -480

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
#pragma once
#include <vls/semantic/Diagnostics.hpp>
#include <vls/semantic/SourceCatalog.hpp>
#include <expected>
#include <span>
#include <string>
#include <string_view>
#include <vector>
namespace vls::semantic {
// A compiler-owned direct-call fact. Byte spans from the stock observer are
// already converted to the captured snapshot's negotiated character positions.
struct Occurrence {
std::string name, type, canonical_type, signature;
DiagnosticSnapshot use_file;
Documents::Range use;
DiagnosticSnapshot definition_file;
Documents::Range definition;
[[nodiscard]] bool has_definition() const noexcept { return definition_file != nullptr; }
};
struct OccurrenceReport {
std::vector<Occurrence> occurrences;
bool complete{};
bool partial{};
std::string reason;
};
enum class OccurrenceError { invalid_report, wrong_nonce };
// Decode a stock-observer report against the exact capture that was compiled.
// Unknown paths, byte spans that do not match the captured bytes, duplicates
// and malformed envelopes reject the whole report.
[[nodiscard]] std::expected<OccurrenceReport, OccurrenceError>
decode_occurrences(std::string_view report, std::string_view nonce,
std::span<const CapturedSource> capture);
} // namespace vls::semantic