From c6f530defd937faa1c00998e60deea6368526961 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 12 Apr 2010 18:47:26 +0000 Subject: [PATCH] Update doxygen comments about lifetime requirements of CXUnsaveFile data arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101054 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang-c/Index.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index f7b847529f..bfb64817da 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -609,7 +609,9 @@ clang_getTranslationUnitSpelling(CXTranslationUnit CTUnit); * * \param unsaved_files the files that have not yet been saved to disk * but may be required for code completion, including the contents of - * those files. + * those files. The contents and name of these files (as specified by + * CXUnsavedFile) are copied when necessary, so the client only needs to + * guarantee their validity until the call to this function returns. * * \param diag_callback callback function that will receive any diagnostics * emitted while processing this source file. If NULL, diagnostics will be @@ -1701,7 +1703,9 @@ typedef struct { * * \param unsaved_files the files that have not yet been saved to disk * but may be required for code completion, including the contents of - * those files. + * those files. The contents and name of these files (as specified by + * CXUnsavedFile) are copied when necessary, so the client only needs to + * guarantee their validity until the call to this function returns. * * \param complete_filename the name of the source file where code completion * should be performed. In many cases, this name will be the same as the -- 2.40.0