]> granicus.if.org Git - clang/commitdiff
[libclang] Do a AST concurrency check in clang_indexTranslationUnit_Impl.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 25 Sep 2012 19:29:50 +0000 (19:29 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 25 Sep 2012 19:29:50 +0000 (19:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164626 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/Indexing.cpp

index 8fe9c36556f7416e15b4b50a8ab98e1e2f70fb32..ae5200470e9e23c8429cc6a7c1de94419de20afa 100644 (file)
@@ -539,6 +539,8 @@ static void clang_indexTranslationUnit_Impl(void *UserData) {
   if (!Unit)
     return;
 
+  ASTUnit::ConcurrencyCheck Check(*Unit);
+
   FileManager &FileMgr = Unit->getFileManager();
 
   if (Unit->getOriginalSourceFileName().empty())