Skip to content

[ClangImporter][Tests] clang doesn't support the empty string as a path argument #79119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ian-twilightcoder
Copy link
Contributor

SIL/verify_all_overlays.py is passing -F "" on non-Apple platforms. Swift handles that kind of, but clang doesn't support it and will get argument parsing errors. It's a pathological case, so fix SIL/verify_all_overlays.py to not do that, but also add a failsafe in ClangImporter to not pass on empty paths.

rdar://142441042

@ian-twilightcoder
Copy link
Contributor Author

This test is disabled for C++ reasons too, so kind of hard to test, but I think it's pretty clear that this is the regression from #78303

…th argument

SIL/verify_all_overlays.py is passing `-F ""` on non-Apple platforms. Swift handles that kind of, but clang doesn't support it and will get argument parsing errors. It's a pathological case, so fix SIL/verify_all_overlays.py to not do that, but also add a failsafe in ClangImporter to not pass on empty paths.

rdar://142441042
@ian-twilightcoder
Copy link
Contributor Author

@swift-ci smoke test

@ian-twilightcoder
Copy link
Contributor Author

@swift-ci test

@ian-twilightcoder
Copy link
Contributor Author

The docc test failures on macOS don't look to be related.

@ian-twilightcoder ian-twilightcoder merged commit 11804d9 into swiftlang:main Feb 4, 2025
4 of 5 checks passed
@ian-twilightcoder ian-twilightcoder deleted the empty-search-paths branch March 26, 2025 17:25
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