Skip to content

[clang][Dependency Scanning] Adding missing visibility attributes to out-of-date entry diagnostics C-APIs #10992

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
merged 1 commit into from
Jul 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions clang/include/clang-c/Dependencies.h
Original file line number Diff line number Diff line change
Expand Up @@ -626,56 +626,60 @@ typedef struct CXOpaqueDepScanFSOutOfDateEntry *CXDepScanFSOutOfDateEntry;
* by the out-of-date entries and should be disposed after the
* out-of-date entries are used and disposed.
*/
CXDepScanFSOutOfDateEntrySet
CINDEX_LINKAGE CXDepScanFSOutOfDateEntrySet
clang_experimental_DependencyScannerService_getFSCacheOutOfDateEntrySet(
CXDependencyScannerService S);

/**
* Returns the number of out-of-date entries contained in a
* \c CXDepScanFSOutOfDateEntrySet .
*/
size_t clang_experimental_DepScanFSCacheOutOfDateEntrySet_getNumOfEntries(
CINDEX_LINKAGE size_t
clang_experimental_DepScanFSCacheOutOfDateEntrySet_getNumOfEntries(
CXDepScanFSOutOfDateEntrySet Entries);

/**
* Returns the out-of-date entry at offset \p Idx of the \c
* CXDepScanFSOutOfDateEntrySet instance.
*/
CXDepScanFSOutOfDateEntry
CINDEX_LINKAGE CXDepScanFSOutOfDateEntry
clang_experimental_DepScanFSCacheOutOfDateEntrySet_getEntry(
CXDepScanFSOutOfDateEntrySet Entries, size_t Idx);

/**
* Given an instance of \c CXDepScanFSOutOfDateEntry, returns its Kind.
*/
CXDepScanFSCacheOutOfDateKind
CINDEX_LINKAGE CXDepScanFSCacheOutOfDateKind
clang_experimental_DepScanFSCacheOutOfDateEntry_getKind(
CXDepScanFSOutOfDateEntry Entry);

/**
* Given an instance of \c CXDepScanFSOutOfDateEntry, returns the path.
*/
CXString clang_experimental_DepScanFSCacheOutOfDateEntry_getPath(
CINDEX_LINKAGE CXString clang_experimental_DepScanFSCacheOutOfDateEntry_getPath(
CXDepScanFSOutOfDateEntry Entry);

/**
* Given an instance of \c CXDepScanFSOutOfDateEntry of kind SizeChanged,
* returns the cached size.
*/
uint64_t clang_experimental_DepScanFSCacheOutOfDateEntry_getCachedSize(
CINDEX_LINKAGE uint64_t
clang_experimental_DepScanFSCacheOutOfDateEntry_getCachedSize(
CXDepScanFSOutOfDateEntry Entry);

/**
* Given an instance of \c CXDepScanFSOutOfDateEntry of kind SizeChanged,
* returns the actual size on the underlying file system.
*/
uint64_t clang_experimental_DepScanFSCacheOutOfDateEntry_getActualSize(
CINDEX_LINKAGE uint64_t
clang_experimental_DepScanFSCacheOutOfDateEntry_getActualSize(
CXDepScanFSOutOfDateEntry Entry);

/**
* Dispose the \c CXDepScanFSOutOfDateEntrySet instance.
*/
void clang_experimental_DepScanFSCacheOutOfDateEntrySet_disposeSet(
CINDEX_LINKAGE void
clang_experimental_DepScanFSCacheOutOfDateEntrySet_disposeSet(
CXDepScanFSOutOfDateEntrySet Entries);

/**
Expand Down