From 408bb74ae67d27ce6ad570b71d34b5cb6d660f6a Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 8 Feb 2010 23:03:06 +0000 Subject: [PATCH] Note that a CXIndex cannot be destroyed until after all of its translation units have been destroyed llvm-svn: 95598 --- clang/include/clang-c/Index.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index d9b4b0906bed..e5db52ea289e 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/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); /**