Skip to content

[PrintAsClang] skip header maps when collecting include paths#87147

Open
rmaz wants to merge 1 commit intoswiftlang:mainfrom
rmaz:skiphmaps
Open

[PrintAsClang] skip header maps when collecting include paths#87147
rmaz wants to merge 1 commit intoswiftlang:mainfrom
rmaz:skiphmaps

Conversation

@rmaz
Copy link
Contributor

@rmaz rmaz commented Feb 11, 2026

Header map lookup is not handled when doing prefix checks for textual header inclusion. Skip adding them to the list instead of adding invalid paths for each header map.

@rmaz
Copy link
Contributor Author

rmaz commented Feb 11, 2026

@swift-ci please smoke test

@rmaz rmaz requested a review from NuriAmari February 11, 2026 17:54
@nkcsgexi nkcsgexi requested a review from beccadax February 11, 2026 18:28
@nkcsgexi
Copy link
Contributor

Test cases?

@rmaz
Copy link
Contributor Author

rmaz commented Feb 18, 2026

Test cases?

Do you have suggestions for a good way to test this? I can add a header map include that gets dropped from the dir prefix list, but I'm not sure how to verify that we skipped it. Its not possible to have a folder prefix with the same name as the hmap, so I can't check that a folder is added unnecessarily.

@rmaz
Copy link
Contributor Author

rmaz commented Feb 18, 2026

@swift-ci please smoke test macOS

Header map lookup is not handled when doing prefix checks for
textual header inclusion. Skip adding them to the list instead of
adding invalid paths for each header map.
@rmaz
Copy link
Contributor Author

rmaz commented Mar 3, 2026

@nkcsgexi added a test to verify you can pass a hmap and still produce textual headers

@swift-ci please smoke test

@rmaz
Copy link
Contributor Author

rmaz commented Mar 5, 2026

@swift-ci please smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants