Skip to content

[clang Dependency Scanning] Out-of-Date Scanning File System Cache Entry Reporting C-APIs #10927

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

Open
wants to merge 5 commits into
base: next
Choose a base branch
from

Conversation

qiongsiwu
Copy link

@qiongsiwu qiongsiwu commented Jun 30, 2025

This PR implements the C-APIs to report a scanning file system cache's out-of-date entries. The C-APIs contains a function to return a set of file system cache out-of-date entries, functions to facilitate looping through all the entries, and reporting the relevant information from the entries.

The APIs are based on llvm#144105.

rdar://152247357

@qiongsiwu
Copy link
Author

Note to reviewers: I don't see a good way to cleanly test these APIs through c-index tests. Ideally, I'd like to create an underlying service whose file system cache I can manipulate directly to test these APIs directly (something similar to https://github.com/llvm/llvm-project/pull/144105/files#diff-25ec4b41a8aed83f312f2bb7b409f379f38dd9d1597d6e4e45e17681260dfcc2R205).

Do we think it is reasonable to create unit tests for these C-APIs? If so, I will try making some unit tests.

@qiongsiwu qiongsiwu requested a review from owenv June 30, 2025 21:38
@qiongsiwu qiongsiwu self-assigned this Jul 2, 2025
@qiongsiwu qiongsiwu marked this pull request as ready for review July 2, 2025 18:15
@qiongsiwu
Copy link
Author

@swift-ci please test llvm.

@qiongsiwu
Copy link
Author

@swift-ci please test llvm.

@qiongsiwu
Copy link
Author

qiongsiwu commented Jul 2, 2025

The two failing tests do not relate to this PR. rdar://154865941 is tracking them.

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