From 83c5184d3ae2ff94a993b3e770e96756193f15f0 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 26 Mar 2010 01:34:51 +0000 Subject: [PATCH] Return translation units from clang_createTranslationUnitFromSource() if even they contain errors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99594 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/CIndex/CIndex.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp index 5a64caa342..998fbbba22 100644 --- a/tools/CIndex/CIndex.cpp +++ b/tools/CIndex/CIndex.cpp @@ -1078,9 +1078,8 @@ clang_createTranslationUnitFromSourceFile(CXIndex CIdx, // stderr and stdout in the file system, all with different buffers // but writing to the same device. fflush(stderr); -#endif +#endif } - return 0; } return Unit.take(); -- 2.40.0