Repository navigation
C import graph: system-header includes resolve on the include path for Objective-C and more system dirs (Part of #7827) - #8365
Merged
Conversation
…r Objective-C and more BSD system dirs (Part of #7827) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #7827.
What
The issue's case (
<sys/types.h>->include/curl/types.h,<sys/time.h>->include/internal/time.h) was already fixed for C and C++ by #8161 (system-header includes resolve only on the repo's include path). Re-checked on current main with a fixture shaped like curl'sares/: no false edge forc/cpp. Two same-mechanism gaps remained and are fixed here:objective-cwas missing fromC_INCLUDE_ROOT_LANGS, so.m/.mmimporters still got both false edges._SYSTEM_DIRSlackedmachine/,os/,netinet6/,net80211/, so<machine/types.h>etc. still hit a same-named repo header from every C-family importer.A repo that really owns the prefixed path (
include/sys/types.h) keeps its edge, and a bare"types.h"keeps today's basename fallback. The issue's narrower rule (system-dir prefix -> exact relative path only) is therefore what the engine now does; openssl's build-linked and.h.inedges are untouched.Class / Sibling gaps
Class: a C-family
#includeof a platform header spelled with a system-directory prefix resolves to an unrelated repo file that shares only the basename. Members (importers c, cpp, objective-c x prefixes sys, machine, os, netinet6, net80211): all handled and tested intests/core_engine/test_c_system_header_includes_8161.py.Sibling gaps: none in the engine. Other BSD/kernel prefixes (
i386/,x86/,arm/,uapi/,dev/) are ambiguous with real project directories and were left out on purpose; no burned estate needs them.Remaining slices: teach
import_graph_accuracythat a.h.intemplate or a build-linked header (openssl 1.0.2include/openssl/) is not a plain false positive (tests/tools/import_graph_accuracy.py; scoring only, no engine change).Gates
test_typosquat_radar_4547.pyandtests/tools/test_import_graph_accuracy.py: 89 passed.import_graph_accuracy.py --ci: OK, 33 languages, baseline unchanged (thecrow, libuv/hiredis, is 100/100 either way), so no regeneration.audit_check.py: all clear.crucible_check.py(both legs, aftersync-pins.sh): PASS, zero golden drift, no re-bless.🤖 Generated with Claude Code