Skip to content

Relax testMainFileChangesIfIncludeIsAdded to allow clangd to return diagnostics from old build settings #1372

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

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 31, 2024

clangd may return diagnostics from the old build settings sometimes (I believe when it's still building the preamble for shared.h when the new build settings come in). Check that it eventually returns the correct diagnostics and allow it to return outdated diagnostics for a short while.

…rn diagnostics from old build settings

`clangd` may return diagnostics from the old build settings sometimes (I believe when it's still building the preamble for shared.h when the new build settings come in). Check that it eventually returns the correct diagnostics and allow it to return outdated diagnostics for a short while.
@ahoppen ahoppen requested review from bnbarham and hamishknight May 31, 2024 04:35
@ahoppen ahoppen requested a review from benlangmuir as a code owner May 31, 2024 04:35
@ahoppen
Copy link
Member Author

ahoppen commented May 31, 2024

@swift-ci Please test

@bnbarham
Copy link
Contributor

@swift-ci please test macOS platform

@ahoppen ahoppen merged commit 403f550 into swiftlang:main May 31, 2024
3 checks passed
@ahoppen ahoppen deleted the clangd-may-not-return-up-to-date-diags branch May 31, 2024 20:13
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.

3 participants