Note that a CXIndex cannot be destroyed until after all of its translation units have been destroyed

llvm-svn: 95598
This commit is contained in:
Douglas Gregor 2010-02-08 23:03:06 +00:00
parent f85bee621b
commit 408bb74ae6
1 changed files with 7 additions and 0 deletions

View File

@ -171,6 +171,13 @@ CINDEX_LINKAGE void clang_disposeString(CXString string);
* (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);
/**