[cfe-commits] r95598 - /cfe/trunk/include/clang-c/Index.h
Douglas Gregor
dgregor at apple.com
Mon Feb 8 15:03:06 PST 2010
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);
/**
More information about the cfe-commits
mailing list