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

Function cbm_sql_values_exclusion_on

internal/cbm/cbm.c:3309–3319  ·  view source on GitHub ↗

The #1735 value-row exclusion is always on. Test builds can turn it off for * one file (CBM_TEST_SQL_FULL_PARSE_ON= ) so a test can * compare the excluded parse against the full one on the same source. */

Source from the content-addressed store, hash-verified

3307 * one file (CBM_TEST_SQL_FULL_PARSE_ON=<rel_path substring>) so a test can
3308 * compare the excluded parse against the full one on the same source. */
3309static bool cbm_sql_values_exclusion_on(const char *rel_path) {
3310#ifdef CBM_ENABLE_TEST_SEAMS
3311 const char *full_on = getenv("CBM_TEST_SQL_FULL_PARSE_ON");
3312 if (full_on && full_on[0] && rel_path && strstr(rel_path, full_on)) {
3313 return false;
3314 }
3315#else
3316 (void)rel_path;
3317#endif
3318 return true;
3319}
3320
3321/* Drop the entries a branch view re-extracted from code outside the
3322 * conditionals: a definition with a QN the file already has at the same line,

Callers 1

extract_file_ex_bodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected