[cfe-commits] r143288 - in /cfe/trunk/tools/libclang: CIndex.cpp Indexing.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Sat Oct 29 12:32:39 PDT 2011
Author: akirtzidis
Date: Sat Oct 29 14:32:39 2011
New Revision: 143288
URL: http://llvm.org/viewvc/llvm-project?rev=143288&view=rev
Log:
Use LIBCLANG_NOTHREADS instead of CINDEXTEST_NOTHREADS inside libclang,
so the c-index-test one can be enabled without affecting libclang.
Modified:
cfe/trunk/tools/libclang/CIndex.cpp
cfe/trunk/tools/libclang/Indexing.cpp
Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=143288&r1=143287&r2=143288&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Sat Oct 29 14:32:39 2011
@@ -2719,7 +2719,7 @@
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;
}
Modified: cfe/trunk/tools/libclang/Indexing.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/Indexing.cpp?rev=143288&r1=143287&r2=143288&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/Indexing.cpp (original)
+++ cfe/trunk/tools/libclang/Indexing.cpp Sat Oct 29 14:32:39 2011
@@ -407,7 +407,7 @@
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;
}
More information about the cfe-commits
mailing list