]> granicus.if.org Git - clang/commitdiff
Use LIBCLANG_NOTHREADS instead of CINDEXTEST_NOTHREADS inside libclang,
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 29 Oct 2011 19:32:39 +0000 (19:32 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 29 Oct 2011 19:32:39 +0000 (19:32 +0000)
so the c-index-test one can be enabled without affecting libclang.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143288 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndex.cpp
tools/libclang/Indexing.cpp

index 8f0c225d63a0e116fc4c52b169c2bbf419499d76..61faf77c9ca4d23ec790fbd23ac69e1aad3c02ab 100644 (file)
@@ -2719,7 +2719,7 @@ int clang_reparseTranslationUnit(CXTranslationUnit TU,
   ReparseTranslationUnitInfo RTUI = { TU, num_unsaved_files, unsaved_files,
                                       options, 0 };
 
-  if (getenv("CINDEXTEST_NOTHREADS")) {
+  if (getenv("LIBCLANG_NOTHREADS")) {
     clang_reparseTranslationUnit_Impl(&RTUI);
     return RTUI.result;
   }
index d05995ce0d21465cca928234b2f4b0e0f546bc68..7f296ae1d194ed1c8a691477d4611926bf7116c9 100644 (file)
@@ -407,7 +407,7 @@ int clang_indexTranslationUnit(CXIndex CIdx,
                                     num_command_line_args, unsaved_files,
                                     num_unsaved_files, out_TU, TU_options, 0 };
 
-  if (getenv("CINDEXTEST_NOTHREADS")) {
+  if (getenv("LIBCLANG_NOTHREADS")) {
     clang_indexTranslationUnit_Impl(&ITUI);
     return ITUI.result;
   }