Author: dgregor
Date: Mon Feb 8 17:03:06 2010
New Revision: 95598
URL: http://llvm.org/viewvc/llvm-project?rev=95598&view=rev
Log:
Note that a CXIndex cannot be destroyed until after all of its translation
units have been destroyed
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=95598&r1=95597&r2=95598&view=diff
==============================================================================
--- cfe/trunk/include/clang-c/Index.h (original)
+++ cfe/trunk/include/clang-c/Index.h Mon Feb 8 17:03:06 2010
@@ -171,6 +171,13 @@
* (which gives the indexer the same performance benefit as the compiler).
*/
CINDEX_LINKAGE CXIndex clang_createIndex(int excludeDeclarationsFromPCH);
+
+/**
+ * \brief Destroy the given index.
+ *
+ * The index must not be destroyed until all of the translation units created
+ * within that index have been destroyed.
+ */
CINDEX_LINKAGE void clang_disposeIndex(CXIndex index);
/**
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits