projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f45853
)
[libclang] Do a AST concurrency check in clang_indexTranslationUnit_Impl.
author
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Tue, 25 Sep 2012 19:29:50 +0000
(19:29 +0000)
committer
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Tue, 25 Sep 2012 19:29:50 +0000
(19:29 +0000)
llvm-svn: 164626
clang/tools/libclang/Indexing.cpp
patch
|
blob
|
history
diff --git
a/clang/tools/libclang/Indexing.cpp
b/clang/tools/libclang/Indexing.cpp
index 8fe9c36556f7416e15b4b50a8ab98e1e2f70fb32..ae5200470e9e23c8429cc6a7c1de94419de20afa 100644
(file)
--- a/
clang/tools/libclang/Indexing.cpp
+++ b/
clang/tools/libclang/Indexing.cpp
@@
-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())