style: clang-format-20 sweep (marathon-touched files)

The CI lint uses clang-format-20 (scripts/lint.sh --ci CLANG_FORMAT=clang-format-20).
Grammar/LSP/struct/issue edits across these files weren't formatted with cf-20,
failing lint and gating the make-test job. Format with cf-20.1.8 to match CI.
No logic change.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
This commit is contained in:
Martin Vogel
2026-06-27 14:34:57 +02:00
parent ad33c9b359
commit 9cbb1aa90f
7 changed files with 42 additions and 39 deletions
+6 -7
View File
@@ -452,10 +452,9 @@ static int resolve_single_call(cbm_pipeline_ctx_t *ctx, CBMCall *call,
cbm_svc_kind_t esvc = cbm_service_pattern_match(call->callee_name);
if (esvc == CBM_SVC_HTTP || esvc == CBM_SVC_ASYNC) {
const char *u = call->first_string_arg;
bool has_url_or_topic =
u && u[0] != '\0' &&
(u[0] == '/' || strstr(u, "://") != NULL ||
(esvc == CBM_SVC_ASYNC && strlen(u) > PAIR_LEN));
bool has_url_or_topic = u && u[0] != '\0' &&
(u[0] == '/' || strstr(u, "://") != NULL ||
(esvc == CBM_SVC_ASYNC && strlen(u) > PAIR_LEN));
if (has_url_or_topic) {
cbm_resolution_t svc_res = {.qualified_name = call->callee_name,
.confidence = PC_SVC_PATTERN_CONF,
@@ -492,9 +491,9 @@ static int resolve_single_call(cbm_pipeline_ctx_t *ctx, CBMCall *call,
cbm_svc_kind_t svc = cbm_service_pattern_match(res.qualified_name);
if (svc == CBM_SVC_HTTP || svc == CBM_SVC_ASYNC) {
const char *u = call->first_string_arg;
bool has_url_or_topic =
u && u[0] != '\0' &&
(u[0] == '/' || strstr(u, "://") != NULL || (svc == CBM_SVC_ASYNC && strlen(u) > PAIR_LEN));
bool has_url_or_topic = u && u[0] != '\0' &&
(u[0] == '/' || strstr(u, "://") != NULL ||
(svc == CBM_SVC_ASYNC && strlen(u) > PAIR_LEN));
if (has_url_or_topic) {
emit_http_async_edge(ctx, call, source_node, NULL, &res, svc);
return SKIP_ONE;
+2 -3
View File
@@ -502,9 +502,8 @@ static bool is_upstream_config_key(const char *key_path) {
/* No key context (e.g. flat string) — keep prior behaviour and mint. */
return false;
}
static const char *const deny[] = {"jwks", "registry", "registries",
"healthcheck", "upstream", "_service_url",
"auth", NULL};
static const char *const deny[] = {"jwks", "registry", "registries", "healthcheck",
"upstream", "_service_url", "auth", NULL};
for (int i = 0; deny[i]; i++) {
if (strstr(key_path, deny[i]) != NULL) {
return true;
+1 -1
View File
@@ -148,7 +148,7 @@ typedef struct {
const char *to_name;
const char *type;
double confidence;
int64_t source_id; /* edge endpoints — let callers match an edge to a hop node */
int64_t source_id; /* edge endpoints — let callers match an edge to a hop node */
int64_t target_id;
const char *properties_json; /* raw edge properties (carries CALLS arg expressions) */
} cbm_edge_info_t;