[cfe-commits] r101054 - /cfe/trunk/include/clang-c/Index.h
Ted Kremenek
kremenek at apple.com
Mon Apr 12 11:47:26 PDT 2010
Author: kremenek
Date: Mon Apr 12 13:47:26 2010
New Revision: 101054
URL: http://llvm.org/viewvc/llvm-project?rev=101054&view=rev
Log:
Update doxygen comments about lifetime requirements of CXUnsaveFile data arguments.
Modified:
cfe/trunk/include/clang-c/Index.h
Modified: cfe/trunk/include/clang-c/Index.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang-c/Index.h?rev=101054&r1=101053&r2=101054&view=diff
==============================================================================
--- cfe/trunk/include/clang-c/Index.h (original)
+++ cfe/trunk/include/clang-c/Index.h Mon Apr 12 13:47:26 2010
@@ -609,7 +609,9 @@
*
* \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 @@
*
* \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
More information about the cfe-commits
mailing list