From 878271b2945e89b868fb8daefea3dfaffce32710 Mon Sep 17 00:00:00 2001 From: Ivan Donchevskii Date: Thu, 7 Mar 2019 10:13:50 +0000 Subject: [libclang] Fix CXTranslationUnit_KeepGoing Since commit 56f548bbbb7e4387a69708f70724d00e9e076153 [modules] Round-trip -Werror flag through explicit module build. the behavior of CXTranslationUnit_KeepGoing changed: Unresolved #includes are fatal errors again. As a consequence, some templates are not instantiated and lead to confusing errors. Revert to the old behavior: With CXTranslationUnit_KeepGoing fatal errors are mapped to errors. Patch by Nikolai Kosjar. Differential Revision: https://reviews.llvm.org/D58501 llvm-svn: 355586 --- clang/test/Index/keep-going.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/test/Index/keep-going.cpp') diff --git a/clang/test/Index/keep-going.cpp b/clang/test/Index/keep-going.cpp index b3f29c5d3da..0b2df725a5a 100644 --- a/clang/test/Index/keep-going.cpp +++ b/clang/test/Index/keep-going.cpp @@ -34,5 +34,5 @@ class C : public A { }; // CHECK-KEEP-GOING-ONLY: VarDecl=global_var:1:12 [type=int] [typekind=Int] [isPOD=1] -// CHECK-DIAG: keep-going.cpp:1:10: fatal error: 'missing1.h' file not found -// CHECK-DIAG: keep-going.cpp:8:10: fatal error: 'missing2.h' file not found +// CHECK-DIAG: keep-going.cpp:1:10: error: 'missing1.h' file not found +// CHECK-DIAG: keep-going.cpp:8:10: error: 'missing2.h' file not found -- cgit v1.2.3