Skip to content

Commit d7f7e88

Browse files
authored
Adding missing visibility attributes to out-of-date entry diagnostics C-APIs. (#10992)
#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 #10927. rdar://152247357
1 parent 889bb41 commit d7f7e88

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
@@ -626,56 +626,60 @@ typedef struct CXOpaqueDepScanFSOutOfDateEntry *CXDepScanFSOutOfDateEntry;
626626
* by the out-of-date entries and should be disposed after the
627627
* out-of-date entries are used and disposed.
628628
*/
629-
CXDepScanFSOutOfDateEntrySet
629+
CINDEX_LINKAGE CXDepScanFSOutOfDateEntrySet
630630
clang_experimental_DependencyScannerService_getFSCacheOutOfDateEntrySet(
631631
CXDependencyScannerService S);
632632

633633
/**
634634
* Returns the number of out-of-date entries contained in a
635635
* \c CXDepScanFSOutOfDateEntrySet .
636636
*/
637-
size_t clang_experimental_DepScanFSCacheOutOfDateEntrySet_getNumOfEntries(
637+
CINDEX_LINKAGE size_t
638+
clang_experimental_DepScanFSCacheOutOfDateEntrySet_getNumOfEntries(
638639
CXDepScanFSOutOfDateEntrySet Entries);
639640

640641
/**
641642
* Returns the out-of-date entry at offset \p Idx of the \c
642643
* CXDepScanFSOutOfDateEntrySet instance.
643644
*/
644-
CXDepScanFSOutOfDateEntry
645+
CINDEX_LINKAGE CXDepScanFSOutOfDateEntry
645646
clang_experimental_DepScanFSCacheOutOfDateEntrySet_getEntry(
646647
CXDepScanFSOutOfDateEntrySet Entries, size_t Idx);
647648

648649
/**
649650
* Given an instance of \c CXDepScanFSOutOfDateEntry, returns its Kind.
650651
*/
651-
CXDepScanFSCacheOutOfDateKind
652+
CINDEX_LINKAGE CXDepScanFSCacheOutOfDateKind
652653
clang_experimental_DepScanFSCacheOutOfDateEntry_getKind(
653654
CXDepScanFSOutOfDateEntry Entry);
654655

655656
/**
656657
* Given an instance of \c CXDepScanFSOutOfDateEntry, returns the path.
657658
*/
658-
CXString clang_experimental_DepScanFSCacheOutOfDateEntry_getPath(
659+
CINDEX_LINKAGE CXString clang_experimental_DepScanFSCacheOutOfDateEntry_getPath(
659660
CXDepScanFSOutOfDateEntry Entry);
660661

661662
/**
662663
* Given an instance of \c CXDepScanFSOutOfDateEntry of kind SizeChanged,
663664
* returns the cached size.
664665
*/
665-
uint64_t clang_experimental_DepScanFSCacheOutOfDateEntry_getCachedSize(
666+
CINDEX_LINKAGE uint64_t
667+
clang_experimental_DepScanFSCacheOutOfDateEntry_getCachedSize(
666668
CXDepScanFSOutOfDateEntry Entry);
667669

668670
/**
669671
* Given an instance of \c CXDepScanFSOutOfDateEntry of kind SizeChanged,
670672
* returns the actual size on the underlying file system.
671673
*/
672-
uint64_t clang_experimental_DepScanFSCacheOutOfDateEntry_getActualSize(
674+
CINDEX_LINKAGE uint64_t
675+
clang_experimental_DepScanFSCacheOutOfDateEntry_getActualSize(
673676
CXDepScanFSOutOfDateEntry Entry);
674677

675678
/**
676679
* Dispose the \c CXDepScanFSOutOfDateEntrySet instance.
677680
*/
678-
void clang_experimental_DepScanFSCacheOutOfDateEntrySet_disposeSet(
681+
CINDEX_LINKAGE void
682+
clang_experimental_DepScanFSCacheOutOfDateEntrySet_disposeSet(
679683
CXDepScanFSOutOfDateEntrySet Entries);
680684

681685
/**

0 commit comments

Comments
 (0)