[cfe-commits] r141583 - /cfe/trunk/tools/libclang/CIndex.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Mon Oct 10 14:57:15 PDT 2011


Author: akirtzidis
Date: Mon Oct 10 16:57:15 2011
New Revision: 141583

URL: http://llvm.org/viewvc/llvm-project?rev=141583&view=rev
Log:
[libclang] Do ConcurrencyCheck for clang_getLocation as well.

Modified:
    cfe/trunk/tools/libclang/CIndex.cpp

Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=141583&r1=141582&r2=141583&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Mon Oct 10 16:57:15 2011
@@ -2710,6 +2710,7 @@
   
   bool Logging = ::getenv("LIBCLANG_LOGGING");
   ASTUnit *CXXUnit = static_cast<ASTUnit *>(tu->TUData);
+  ASTUnit::ConcurrencyCheck Check(*CXXUnit);
   const FileEntry *File = static_cast<const FileEntry *>(file);
   SourceLocation SLoc = CXXUnit->getLocation(File, line, column);
   if (SLoc.isInvalid()) {





More information about the cfe-commits mailing list