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.
18 lines
458 B
C++
18 lines
458 B
C++
struct Range {
|
|
constexpr const int* begin() const { return values; }
|
|
constexpr const int* end() const { return values + 2; }
|
|
private:
|
|
int values[2]{3, 17};
|
|
};
|
|
consteval int sum() {
|
|
static constexpr Range items{};
|
|
int total = 0;
|
|
#ifdef INIT_LIST
|
|
template for (constexpr int item : {3, 17}) { total += item; }
|
|
#else
|
|
template for (constexpr int item : items) { total += item; }
|
|
#endif
|
|
return total;
|
|
}
|
|
static_assert(sum() == 20);
|