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.
21 lines
649 B
C++
21 lines
649 B
C++
enum class State { Ready = 17 };
|
|
|
|
template<class T> concept HasReady = requires { T::Ready; };
|
|
|
|
template<HasReady T> consteval int reflected_value(int bias) {
|
|
constexpr auto entity = ^^T::Ready;
|
|
return static_cast<int>([:entity:]) + bias;
|
|
}
|
|
|
|
template<class T> consteval int twice(int bias) {
|
|
return 2 * reflected_value<T>(bias);
|
|
}
|
|
|
|
// The predicates stay true for both 17 and the edited value 41. They expose
|
|
// neither the intermediate result nor its type to the trace verifier.
|
|
static_assert(twice<State>(0) > 0);
|
|
static_assert(twice<State>(5) > 0);
|
|
#ifdef VLS_CHECK_REJECTED_CONSTRAINT
|
|
constexpr auto rejected = twice<int>(0);
|
|
#endif
|