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

+7 -7
View File
@@ -2,7 +2,7 @@
#include <limits>
Void::Testing::Test consecutive_frames_preserve_byte_lengths() {
VOID_TEST(FramingTests, consecutive_frames_preserve_byte_lengths) {
const std::string body{"\"\xF0\x9F\x98\x83\""};
std::istringstream input{test::frame(body) + test::frame("{}")};
auto first = vls::read_frame(input);
@@ -15,7 +15,7 @@ Void::Testing::Test consecutive_frames_preserve_byte_lengths() {
Void::Testing::expect(eof.has_value() && !eof->has_value());
}
Void::Testing::Test exact_frame_limits() {
VOID_TEST(FramingTests, exact_frame_limits) {
const auto wire = test::frame("1234");
std::istringstream exact{wire};
Void::Testing::expect(vls::read_frame(exact, {wire.size() - 4, 4}).has_value());
@@ -25,7 +25,7 @@ Void::Testing::Test exact_frame_limits() {
Void::Testing::expect(!vls::read_frame(body_over, {wire.size() - 4, 3}).has_value());
}
Void::Testing::Test length_validation() {
VOID_TEST(FramingTests, length_validation) {
for (const std::string header :
{"Other: 1", "Content-Length: ", "Content-Length: -1", "Content-Length: +1",
"Content-Length: 1x", "Content-Length: 1 0", "Content-Length: 1.0",
@@ -40,7 +40,7 @@ Void::Testing::Test length_validation() {
Void::Testing::expect((**result).empty());
}
Void::Testing::Test charset_and_header_validation() {
VOID_TEST(FramingTests, charset_and_header_validation) {
for (const std::string type :
{"application/vscode-jsonrpc; charset=utf-8", "application/vscode-jsonrpc; charset=UTF8",
"application/vscode-jsonrpc", "application/json; charset=\"utf-8\""}) {
@@ -62,14 +62,14 @@ Void::Testing::Test charset_and_header_validation() {
Void::Testing::expect(!vls::read_frame(non_ascii).has_value());
}
Void::Testing::Test truncated_header_and_body_are_fatal() {
VOID_TEST(FramingTests, truncated_header_and_body_are_fatal) {
for (const std::string wire : {"C", "Content-Length: 2\r\n", "Content-Length: 2\r\n\r\n{"}) {
std::istringstream input{wire};
Void::Testing::expect(!vls::read_frame(input).has_value());
}
}
Void::Testing::Test stream_failures_propagate() {
VOID_TEST(FramingTests, stream_failures_propagate) {
std::istringstream broken;
broken.setstate(std::ios::badbit);
Void::Testing::expect(!vls::read_frame(broken).has_value());
@@ -82,7 +82,7 @@ Void::Testing::Test stream_failures_propagate() {
Void::Testing::expect(!diagnostics.str().empty());
}
Void::Testing::Test no_resynchronization_after_framing_error() {
VOID_TEST(FramingTests, no_resynchronization_after_framing_error) {
std::istringstream input{"Content-Length: nope\r\n\r\n" +
test::frame(test::initialize_request)};
std::ostringstream output;