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

+34
View File
@@ -0,0 +1,34 @@
#pragma once
#include <vls/index/SymbolIndex.hpp>
#include <vls/navigation/Navigation.hpp>
#include <cstddef>
#include <span>
#include <string>
#include <string_view>
namespace vls::features {
// What the caller currently knows about one source path. Content identity is
// the same opaque value the index stored; an empty identity means the caller
// cannot prove the file's current content, so its facts stay non-editable.
struct IndexedSource {
std::string path;
std::string content;
bool editable{};
};
// Merges one published index generation into a navigation fact set.
//
// Contexts the set does not know yet are added with the index's completeness.
// Each record's use location and every proven reference become facts whose
// binding joins on name and definition. Facts are deduplicated by binding,
// source and use; an existing fact always wins, so compiler-derived content
// identities are never replaced by weaker index data. A record whose source
// is unknown stays in the set as a non-editable fact: rename then refuses
// instead of editing an unverified file. Returns the number of added facts.
std::size_t ingest_index_facts(navigation::FactSet &, const index::Generation &,
std::span<const IndexedSource>, std::size_t limit = 65536);
} // namespace vls::features