MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_sqlite_transient_destructor

Function cbm_sqlite_transient_destructor

src/store/store.c:780–785  ·  view source on GitHub ↗

Module-local copy of SQLite's SQLITE_TRANSIENT sentinel ((void*)-1). * We construct it via memcpy from a volatile intptr_t sentinel so the * resulting expression isn't syntactically a direct int-to-ptr cast — * clang-tidy's performance-no-int-to-ptr sees the memcpy boundary and * doesn't flag it per-use-site. */

Source from the content-addressed store, hash-verified

778 * clang-tidy's performance-no-int-to-ptr sees the memcpy boundary and
779 * doesn't flag it per-use-site. */
780static sqlite3_destructor_type cbm_sqlite_transient_destructor(void) {
781 static const volatile intptr_t raw = -1;
782 sqlite3_destructor_type dtor = NULL;
783 memcpy(&dtor, (const void *)&raw, sizeof(dtor));
784 return dtor;
785}
786#define CBM_SQLITE_TRANSIENT (cbm_sqlite_transient_destructor())
787
788/* True if we should insert a space BEFORE input[i] to split a camelCase word

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected