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
+6
-6
@@ -1,6 +1,6 @@
|
||||
#include "TestSupport.hpp"
|
||||
|
||||
Void::Testing::Test valid_unicode_and_escapes() {
|
||||
VOID_TEST(JsonTests, valid_unicode_and_escapes) {
|
||||
const auto pair = vls::parse_json(R"("\uD83D\uDE03")");
|
||||
Void::Testing::require(pair.has_value());
|
||||
Void::Testing::expect_eq(std::get<std::string>(pair->value), std::string{"\xF0\x9F\x98\x83"});
|
||||
@@ -12,7 +12,7 @@ Void::Testing::Test valid_unicode_and_escapes() {
|
||||
Void::Testing::expect_eq(std::get<std::string>(round_trip->value), source);
|
||||
}
|
||||
|
||||
Void::Testing::Test rejects_invalid_utf8_and_raw_controls() {
|
||||
VOID_TEST(JsonTests, rejects_invalid_utf8_and_raw_controls) {
|
||||
for (const std::string bytes :
|
||||
{std::string{"\x80"}, std::string{"\xC0\xAF"}, std::string{"\xE0\x80\xAF"},
|
||||
std::string{"\xED\xA0\x80"}, std::string{"\xF4\x90\x80\x80"}, std::string{"\xF0\x9F"},
|
||||
@@ -21,14 +21,14 @@ Void::Testing::Test rejects_invalid_utf8_and_raw_controls() {
|
||||
}
|
||||
}
|
||||
|
||||
Void::Testing::Test rejects_invalid_escapes_and_surrogates() {
|
||||
VOID_TEST(JsonTests, rejects_invalid_escapes_and_surrogates) {
|
||||
for (const auto text : {R"("\uD800")", R"("\uDC00")", R"("\uD800\u0041")", R"("\uD800\uD800")",
|
||||
R"("\uDE03\uD83D")", R"("\uGGGG")", R"("\u12")", R"("\x20")",
|
||||
R"("unterminated)", R"("\")"})
|
||||
Void::Testing::expect(!vls::parse_json(text).has_value());
|
||||
}
|
||||
|
||||
Void::Testing::Test depth_is_bounded_before_recursive_parse() {
|
||||
VOID_TEST(JsonTests, depth_is_bounded_before_recursive_parse) {
|
||||
Void::Testing::expect(
|
||||
vls::parse_json(std::string(64, '[') + "0" + std::string(64, ']')).has_value());
|
||||
Void::Testing::expect(
|
||||
@@ -39,7 +39,7 @@ Void::Testing::Test depth_is_bounded_before_recursive_parse() {
|
||||
Void::Testing::expect(!vls::parse_json(std::string(100000, '[')).has_value());
|
||||
}
|
||||
|
||||
Void::Testing::Test request_ids_preserve_strings_and_signed32_range() {
|
||||
VOID_TEST(JsonTests, request_ids_preserve_strings_and_signed32_range) {
|
||||
for (const auto text : {"-2147483648", "2147483647", "0", "-1", R"("quote\"\\\n\u0416")"}) {
|
||||
const auto json = vls::parse_json(text);
|
||||
Void::Testing::require(json.has_value());
|
||||
@@ -58,7 +58,7 @@ Void::Testing::Test request_ids_preserve_strings_and_signed32_range() {
|
||||
}
|
||||
}
|
||||
|
||||
Void::Testing::Test malformed_json_is_rejected() {
|
||||
VOID_TEST(JsonTests, malformed_json_is_rejected) {
|
||||
for (const auto text :
|
||||
{"", "{} x", "{", "[1,]", "{\"a\":1,}", "true false", R"({"same":1,"same":2})", "01", "-",
|
||||
"NaN", "Infinity", "1.", "1e", "1e+", "+1", ".1", "--1"})
|
||||
|
||||
Reference in new issue
Block a user