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. */
| 778 | * clang-tidy's performance-no-int-to-ptr sees the memcpy boundary and |
| 779 | * doesn't flag it per-use-site. */ |
| 780 | static 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 |
nothing calls this directly
no outgoing calls
no test coverage detected