@@ -926,14 +926,13 @@ static bool emit_classified_edge(cbm_pipeline_ctx_t *ctx, const CBMCall *call,
926926 * ambiguous strategy for the edge the caller writes. NULL: the chosen member
927927 * is the source itself. MUST match pass_parallel.c. */
928928static const cbm_gbuf_node_t * calls_overload_target (cbm_pipeline_ctx_t * ctx , const CBMCall * call ,
929- CBMLanguage lang ,
930- const cbm_gbuf_node_t * source ,
929+ CBMLanguage lang , const cbm_gbuf_node_t * source ,
931930 const cbm_gbuf_node_t * target ,
932931 cbm_resolution_t * res , bool suppress_plain ,
933932 CBMCallEvidence * evidence ) {
934933 const cbm_gbuf_node_t * ovl [CBM_OVERLOAD_TARGETS_MAX ];
935- int novl = cbm_pipeline_overload_targets ( ctx -> gbuf , target , call , lang , ovl ,
936- CBM_OVERLOAD_TARGETS_MAX );
934+ int novl =
935+ cbm_pipeline_overload_targets ( ctx -> gbuf , target , call , lang , ovl , CBM_OVERLOAD_TARGETS_MAX );
937936 if (novl > 1 ) {
938937 res -> strategy = CBM_OVERLOAD_AMBIGUOUS_STRATEGY ;
939938 if (res -> confidence > CBM_OVERLOAD_AMBIGUOUS_CONFIDENCE ) {
@@ -1103,8 +1102,8 @@ static bool br_dir_has_build_file(const char *repo_path, const char *dir) {
11031102 "build.gradle.kts" , "pom.xml" };
11041103 char path [CBM_SZ_4K ];
11051104 for (size_t i = 0 ; i < sizeof (files ) / sizeof (files [0 ]); i ++ ) {
1106- int n = snprintf ( path , sizeof ( path ), "%s%s%s/%s" , repo_path , dir [ 0 ] ? "/" : "" , dir ,
1107- files [i ]);
1105+ int n =
1106+ snprintf ( path , sizeof ( path ), "%s%s%s/%s" , repo_path , dir [ 0 ] ? "/" : "" , dir , files [i ]);
11081107 if (n <= 0 || (size_t )n >= sizeof (path )) {
11091108 continue ;
11101109 }
@@ -1240,13 +1239,15 @@ static const cbm_gbuf_node_t *br_unique_owner_match(const cbm_gbuf_t *gbuf,
12401239 return found ;
12411240}
12421241
1243- const cbm_gbuf_node_t * cbm_pipeline_java_same_build_root (
1244- const cbm_gbuf_t * gbuf , const cbm_registry_t * registry , const char * project ,
1245- const char * repo_path , CBMLanguage lang , const char * caller_rel , const char * strategy ,
1246- const cbm_gbuf_node_t * target ) {
1247- if (lang != CBM_LANG_JAVA || !gbuf || !project || !repo_path || !repo_path [0 ] ||
1248- !caller_rel || !target || !target -> file_path || !target -> qualified_name ||
1249- !target -> name || !target -> label ) {
1242+ const cbm_gbuf_node_t * cbm_pipeline_java_same_build_root (const cbm_gbuf_t * gbuf ,
1243+ const cbm_registry_t * registry ,
1244+ const char * project , const char * repo_path ,
1245+ CBMLanguage lang , const char * caller_rel ,
1246+ const char * strategy ,
1247+ const cbm_gbuf_node_t * target ) {
1248+ if (lang != CBM_LANG_JAVA || !gbuf || !project || !repo_path || !repo_path [0 ] || !caller_rel ||
1249+ !target || !target -> file_path || !target -> qualified_name || !target -> name ||
1250+ !target -> label ) {
12501251 return target ;
12511252 }
12521253 char croot [CBM_SZ_4K ];
@@ -1292,7 +1293,8 @@ const cbm_gbuf_node_t *cbm_pipeline_java_same_build_root(
12921293 free (tprefix );
12931294 free (cprefix );
12941295 if (better == target && br_strategy_is_name_guess (strategy )) {
1295- const cbm_gbuf_node_t * own = br_unique_owner_match (gbuf , registry , repo_path , croot , target );
1296+ const cbm_gbuf_node_t * own =
1297+ br_unique_owner_match (gbuf , registry , repo_path , croot , target );
12961298 if (own ) {
12971299 better = own ;
12981300 }
@@ -1632,8 +1634,8 @@ static int resolve_single_call(cbm_pipeline_ctx_t *ctx, CBMCall *call, const CBM
16321634 /* (Kotlin calls carry no is_method flag; the helper reads the dotted
16331635 * callee as the member form.) */
16341636 cbm_suppress_kotlin_external_import_member (
1635- lang == CBM_LANG_KOTLIN , true, call -> callee_name , res .strategy , imports ,
1636- imp_keys , imp_count , cbm_pipeline_get_pkgmap (), cbm_pipeline_get_nsmap ()) ||
1637+ lang == CBM_LANG_KOTLIN , true, call -> callee_name , res .strategy , imports , imp_keys ,
1638+ imp_count , cbm_pipeline_get_pkgmap (), cbm_pipeline_get_nsmap ()) ||
16371639 (lang == CBM_LANG_KOTLIN && cbm_suppress_weak_member_match (true, true, res .strategy ) &&
16381640 cbm_pipeline_kotlin_receiver_external (lsp_calls , call ) &&
16391641 cbm_pipeline_qn_is_type_member (ctx -> gbuf , res .qualified_name )) ||
0 commit comments