@@ -752,7 +752,8 @@ typedef struct CXOpaqueDepGraphModuleLinkLibrary *CXDepGraphModuleLinkLibrary;
752
752
/**
753
753
* Get the set of link libraries given a \c CXDepGraphModule instance.
754
754
* The returned set is a pointer into memory that the \c CXDepGraphModule
755
- * instance owns. Therefore the set does not need to be disposed.
755
+ * instance owns. Therefore the set does not need to be disposed, and it has
756
+ * the same lifetime as the \c CXDepGraphModule instance.
756
757
*/
757
758
CINDEX_LINKAGE CXDepGraphModuleLinkLibrarySet
758
759
clang_experimental_DepGraphModule_getLinkLibrarySet (CXDepGraphModule );
@@ -765,7 +766,10 @@ CINDEX_LINKAGE size_t clang_experimental_DepGraphModuleLinkLibrarySet_getSize(
765
766
766
767
/**
767
768
* Retrieve the \c CXDepGraphModuleLinkLibrary instance at index \p Idx from the
768
- * \c CXDepGraphModuleLinkLibrarySet instance.
769
+ * \c CXDepGraphModuleLinkLibrarySet instance. The returned object is owned
770
+ * by the \c CXDepGraphModule instance where the
771
+ * \c CXDepGraphModuleLinkLibrarySet was retrieved from, and has the same
772
+ * lifetime as the \c CXDepGraphModule instance.
769
773
*/
770
774
CINDEX_LINKAGE CXDepGraphModuleLinkLibrary
771
775
clang_experimental_DepGraphModuleLinkLibrarySet_getLinkLibrary (
@@ -775,7 +779,9 @@ clang_experimental_DepGraphModuleLinkLibrarySet_getLinkLibrary(
775
779
* Get the `Library` string from the \c CXDepGraphModuleLinkLibrary instance.
776
780
* `Library` could be a library name, or an absolute path to a library or a
777
781
* framework, as specified in the corresponding \c CXDepGraphModule instance's
778
- * modulemap.
782
+ * modulemap. The returned \c CXString is a reference to a string owned
783
+ * by the \c CXDepGraphModule instance, and has the same lifetime as the
784
+ * the \c CXDepGraphModule instance.
779
785
*/
780
786
CINDEX_LINKAGE CXString clang_experimental_DepGraphModuleLinkLibrary_getLibrary (
781
787
CXDepGraphModuleLinkLibrary );
0 commit comments