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.
17 lines
453 B
C++
17 lines
453 B
C++
#include <meta>
|
|
|
|
enum class State { Idle = 3, Ready = 17 };
|
|
template <class T> concept HasReady = requires { T::Ready; };
|
|
|
|
template <HasReady T> consteval int reflected_value() {
|
|
constexpr auto ready = ^^T::Ready;
|
|
return static_cast<int>([:ready:]);
|
|
}
|
|
|
|
template <class T> consteval int twice() { return 2 * reflected_value<T>(); }
|
|
|
|
static_assert(twice<State>() == 34);
|
|
#ifdef CHECK_CONSTRAINT_DIAGNOSTIC
|
|
constexpr int bad = twice<int>();
|
|
#endif
|