Skip to content

Commit 1439587

Browse files
committed
Adding missing visibility attributes to out-of-date entry diagnostics C-APIs. (swiftlang#10992)
swiftlang#10927 added a set of C-APIs to report out-of-date scanning file system cache entires. The C-APIs missed their visibility attributes. This PR adds `CINDEX_LINKAGE` to all APIs added by swiftlang#10927. rdar://152247357 (cherry picked from commit d7f7e88)
1 parent 885fbb7 commit 1439587

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

clang/include/clang-c/Dependencies.h

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -826,56 +826,60 @@ typedef struct CXOpaqueDepScanFSOutOfDateEntry *CXDepScanFSOutOfDateEntry;
826826
* by the out-of-date entries and should be disposed after the
827827
* out-of-date entries are used and disposed.
828828
*/
829-
CXDepScanFSOutOfDateEntrySet
829+
CINDEX_LINKAGE CXDepScanFSOutOfDateEntrySet
830830
clang_experimental_DependencyScannerService_getFSCacheOutOfDateEntrySet(
831831
CXDependencyScannerService S);
832832

833833
/**
834834
* Returns the number of out-of-date entries contained in a
835835
* \c CXDepScanFSOutOfDateEntrySet .
836836
*/
837-
size_t clang_experimental_DepScanFSCacheOutOfDateEntrySet_getNumOfEntries(
837+
CINDEX_LINKAGE size_t
838+
clang_experimental_DepScanFSCacheOutOfDateEntrySet_getNumOfEntries(
838839
CXDepScanFSOutOfDateEntrySet Entries);
839840

840841
/**
841842
* Returns the out-of-date entry at offset \p Idx of the \c
842843
* CXDepScanFSOutOfDateEntrySet instance.
843844
*/
844-
CXDepScanFSOutOfDateEntry
845+
CINDEX_LINKAGE CXDepScanFSOutOfDateEntry
845846
clang_experimental_DepScanFSCacheOutOfDateEntrySet_getEntry(
846847
CXDepScanFSOutOfDateEntrySet Entries, size_t Idx);
847848

848849
/**
849850
* Given an instance of \c CXDepScanFSOutOfDateEntry, returns its Kind.
850851
*/
851-
CXDepScanFSCacheOutOfDateKind
852+
CINDEX_LINKAGE CXDepScanFSCacheOutOfDateKind
852853
clang_experimental_DepScanFSCacheOutOfDateEntry_getKind(
853854
CXDepScanFSOutOfDateEntry Entry);
854855

855856
/**
856857
* Given an instance of \c CXDepScanFSOutOfDateEntry, returns the path.
857858
*/
858-
CXString clang_experimental_DepScanFSCacheOutOfDateEntry_getPath(
859+
CINDEX_LINKAGE CXString clang_experimental_DepScanFSCacheOutOfDateEntry_getPath(
859860
CXDepScanFSOutOfDateEntry Entry);
860861

861862
/**
862863
* Given an instance of \c CXDepScanFSOutOfDateEntry of kind SizeChanged,
863864
* returns the cached size.
864865
*/
865-
uint64_t clang_experimental_DepScanFSCacheOutOfDateEntry_getCachedSize(
866+
CINDEX_LINKAGE uint64_t
867+
clang_experimental_DepScanFSCacheOutOfDateEntry_getCachedSize(
866868
CXDepScanFSOutOfDateEntry Entry);
867869

868870
/**
869871
* Given an instance of \c CXDepScanFSOutOfDateEntry of kind SizeChanged,
870872
* returns the actual size on the underlying file system.
871873
*/
872-
uint64_t clang_experimental_DepScanFSCacheOutOfDateEntry_getActualSize(
874+
CINDEX_LINKAGE uint64_t
875+
clang_experimental_DepScanFSCacheOutOfDateEntry_getActualSize(
873876
CXDepScanFSOutOfDateEntry Entry);
874877

875878
/**
876879
* Dispose the \c CXDepScanFSOutOfDateEntrySet instance.
877880
*/
878-
void clang_experimental_DepScanFSCacheOutOfDateEntrySet_disposeSet(
881+
CINDEX_LINKAGE void
882+
clang_experimental_DepScanFSCacheOutOfDateEntrySet_disposeSet(
879883
CXDepScanFSOutOfDateEntrySet Entries);
880884

881885
/**

0 commit comments

Comments
 (0)