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: clang-format the impact and symbol-history additions

Martin Vogel3ce833827694
diff --git a/src/ui/atlas.h b/src/ui/atlas.h
index 8a7e0d373..6e23209b9 100644
--- a/src/ui/atlas.h
+++ b/src/ui/atlas.h
@@ -53,9 +53,8 @@ char *cbm_atlas_file_history_json(cbm_store_t *store, const char *project, const
/* Per-symbol rationale evidence: `git log -L start,end:file` (bounded,
* on-demand) with the forge base URL for commit/#ref links. */
-char *cbm_atlas_symbol_history_json(cbm_store_t *store, const char *project,
- const char *file_path, long long start_line,
- long long end_line);
+char *cbm_atlas_symbol_history_json(cbm_store_t *store, const char *project, const char *file_path,
+ long long start_line, long long end_line);
/* ── A→B trace (atlas_flows.c) ────────────────────────────────────
* Reachability between two callables over CALLS ("calls") or DATA_FLOWS
diff --git a/src/ui/atlas_flows.c b/src/ui/atlas_flows.c
index 7d4e88ae2..acc325958 100644
--- a/src/ui/atlas_flows.c
+++ b/src/ui/atlas_flows.c
@@ -933,8 +933,7 @@ char *cbm_atlas_impact_json(cbm_store_t *store, const char *project, int64_t nod
const flow_node_t *nodes = g_flow_cache.nodes;
yyjson_mut_val *node_obj = yyjson_mut_obj(doc);
yyjson_mut_obj_add_int(doc, node_obj, "id", nodes[origin].id);
- yyjson_mut_obj_add_strcpy(doc, node_obj, "name",
- nodes[origin].name ? nodes[origin].name : "?");
+ yyjson_mut_obj_add_strcpy(doc, node_obj, "name", nodes[origin].name ? nodes[origin].name : "?");
if (nodes[origin].file_path)
yyjson_mut_obj_add_strcpy(doc, node_obj, "file_path", nodes[origin].file_path);
yyjson_mut_obj_add_val(doc, root, "node", node_obj);
diff --git a/src/ui/atlas_metrics.c b/src/ui/atlas_metrics.c
index a9db96b32..09458ef76 100644
--- a/src/ui/atlas_metrics.c
+++ b/src/ui/atlas_metrics.c
@@ -820,9 +820,8 @@ static void mx_remote_url(const char *root_path, char *out, size_t cap) {
snprintf(out, cap, "%s", https);
}
-char *cbm_atlas_symbol_history_json(cbm_store_t *store, const char *project,
- const char *file_path, long long start_line,
- long long end_line) {
+char *cbm_atlas_symbol_history_json(cbm_store_t *store, const char *project, const char *file_path,
+ long long start_line, long long end_line) {
if (!store || !project || !file_path || !file_path[0])
return NULL;
if (start_line < 1 || end_line < start_line || end_line > 10000000)
diff --git a/src/ui/http_server.c b/src/ui/http_server.c
index 2eb63eabe..7da082d2c 100644
--- a/src/ui/http_server.c
+++ b/src/ui/http_server.c
@@ -1970,8 +1970,7 @@ static void handle_atlas_impact(cbm_http_conn_t *c, const cbm_http_req_t *req) {
return;
}
int64_t node_id = node_str[0] == '#' ? strtoll(node_str + 1, NULL, 10) : -1;
- char *json =
- cbm_atlas_impact_json(store, project, node_id, node_id < 0 ? node_str : NULL);
+ char *json = cbm_atlas_impact_json(store, project, node_id, node_id < 0 ? node_str : NULL);
cbm_store_close(store);
atlas_reply_json(c, json, 500, "{\"error\":\"impact failed\"}");
}