From: Douglas Gregor Date: Mon, 8 Feb 2010 23:03:06 +0000 (+0000) Subject: Note that a CXIndex cannot be destroyed until after all of its translation units... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0087e1a12b67b6bb032a72ea485a863daeccf55b;p=clang Note that a CXIndex cannot be destroyed until after all of its translation units have been destroyed git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95598 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index d9b4b0906b..e5db52ea28 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -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); /**