diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-08 23:03:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-08 23:03:06 +0000 |
commit | 408bb74ae67d27ce6ad570b71d34b5cb6d660f6a (patch) | |
tree | d1356243770e0b4baaed6c227ec0b45c67c123f0 | |
parent | f85bee621b1c118bbd693d7b4277f2f490a78ec1 (diff) | |
download | bcm5719-llvm-408bb74ae67d27ce6ad570b71d34b5cb6d660f6a.tar.gz bcm5719-llvm-408bb74ae67d27ce6ad570b71d34b5cb6d660f6a.zip |
Note that a CXIndex cannot be destroyed until after all of its translation units have been destroyed
llvm-svn: 95598
-rw-r--r-- | clang/include/clang-c/Index.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index d9b4b0906be..e5db52ea289 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); /** |