Skip to content

Commit 492e59a

Browse files
style(pipeline): clang-format calls_edge homonym check (#1572)
Signed-off-by: rudi193-cmd <rudi193@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f5ec03f commit 492e59a

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎src/pipeline/registry.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -769,12 +769,6 @@ static bool lsp_strategy_is_external_builtin(const char *strategy) {
769769
strcmp(strategy, "lsp_builtin_constructor") == 0;
770770
}
771771

772-
static bool cross_language_unique_name_homonym(CBMLanguage caller_lang,
773-
const char *target_file_path) {
774-
return cbm_suppress_cross_language_suffix_match(caller_lang, target_file_path,
775-
"unique_name");
776-
}
777-
778772
bool cbm_suppress_cross_language_calls_edge(CBMLanguage caller_lang, const char *target_file_path,
779773
const char *strategy) {
780774
if (cbm_suppress_cross_language_suffix_match(caller_lang, target_file_path, strategy)) {
@@ -784,7 +778,8 @@ bool cbm_suppress_cross_language_calls_edge(CBMLanguage caller_lang, const char
784778
* homonym, every weak resolver (import_map, lsp_*, suffix_match, …) is the
785779
* same failure mode as registry unique_name. Keep same_module (true local
786780
* callee) and stdlib lsp_builtin* (usually off-graph). */
787-
if (!cross_language_unique_name_homonym(caller_lang, target_file_path)) {
781+
if (!cbm_suppress_cross_language_suffix_match(caller_lang, target_file_path,
782+
"unique_name")) {
788783
return false;
789784
}
790785
if (strategy && strcmp(strategy, "same_module") == 0) {

0 commit comments

Comments
 (0)