summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-04-12 18:47:26 +0000
committerTed Kremenek <kremenek@apple.com>2010-04-12 18:47:26 +0000
commitde24a940a706255142a1dbcc798834c5b6dc5cd2 (patch)
treec28c900dbf0702d3fc64e7c374f4396c510ef53e /clang/include/clang-c
parentfc93503c5934baca5803e8405ce55c4cff18e0ca (diff)
downloadbcm5719-llvm-de24a940a706255142a1dbcc798834c5b6dc5cd2.tar.gz
bcm5719-llvm-de24a940a706255142a1dbcc798834c5b6dc5cd2.zip
Update doxygen comments about lifetime requirements of CXUnsaveFile data arguments.
llvm-svn: 101054
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index f7b847529f4..bfb64817da1 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/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
OpenPOWER on IntegriCloud