Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

style(diagnostics): clang-format the new scaling-probe and cross_lsp_cost lines

Martin Vogel170590bc6caa
diff --git a/src/foundation/profile.c b/src/foundation/profile.c
index 248ab86fa..d10c02b9b 100644
--- a/src/foundation/profile.c
+++ b/src/foundation/profile.c
@@ -173,8 +173,9 @@ void cbm_scale_end(cbm_scale_probe_t *probe) {
char curve[PROF_BUF_LEN * CBM_SCALE_CHECKPOINTS];
int used = 0;
for (int i = 0; i < recorded && used < (int)sizeof(curve) - 1; i++) {
- int wrote = snprintf(curve + used, sizeof(curve) - (size_t)used, "%s%ld:%ld",
- i == 0 ? "" : ",", probe->cp_items[i], probe->cp_us[i] / PROF_US_PER_MS);
+ int wrote =
+ snprintf(curve + used, sizeof(curve) - (size_t)used, "%s%ld:%ld", i == 0 ? "" : ",",
+ probe->cp_items[i], probe->cp_us[i] / PROF_US_PER_MS);
if (wrote < 0) {
break;
}
diff --git a/src/pipeline/pass_parallel.c b/src/pipeline/pass_parallel.c
index 57734af0d..ab12f383d 100644
--- a/src/pipeline/pass_parallel.c
+++ b/src/pipeline/pass_parallel.c
@@ -3297,8 +3297,7 @@ int cbm_parallel_resolve(cbm_pipeline_ctx_t *ctx, const cbm_file_info_t *files,
* Emitted next to defs_total so one grep on two differently sized repos
* answers it. */
int cross_files = atomic_load_explicit(&rc.lsp_cross_processed, memory_order_relaxed);
- uint64_t cross_us =
- atomic_load_explicit(&rc.time_ns_cross_lsp, memory_order_relaxed) / 1000ULL;
+ uint64_t cross_us = atomic_load_explicit(&rc.time_ns_cross_lsp, memory_order_relaxed) / 1000ULL;
if (cross_files > 0) {
char cf_buf[CBM_SZ_32];
char nf_buf[CBM_SZ_32];
@@ -3309,10 +3308,10 @@ int cbm_parallel_resolve(cbm_pipeline_ctx_t *ctx, const cbm_file_info_t *files,
snprintf(nf_buf, sizeof(nf_buf), "%d", cross_files);
snprintf(cu_buf, sizeof(cu_buf), "%llu", (unsigned long long)(cross_us / 1000ULL));
snprintf(pk_buf, sizeof(pk_buf), "%llu",
- (unsigned long long)(def_count > 0 ? (cross_us * 1000ULL) /
- ((uint64_t)cross_files *
- (uint64_t)def_count)
- : 0ULL));
+ (unsigned long long)(def_count > 0
+ ? (cross_us * 1000ULL) /
+ ((uint64_t)cross_files * (uint64_t)def_count)
+ : 0ULL));
cbm_log_info("parallel.resolve.cross_lsp_cost", "cross_lsp_ms", cu_buf, "files", nf_buf,
"us_per_file", cf_buf, "defs_total", itoa_log(def_count),
"us_per_file_per_kdef", pk_buf);