From 83bce931a4966321470af62b3d8a81b9e1c8c2e4 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@355586 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Index/keep-going-template-instantiations.cpp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/Index/keep-going-template-instantiations.cpp (limited to 'test/Index/keep-going-template-instantiations.cpp') diff --git a/test/Index/keep-going-template-instantiations.cpp b/test/Index/keep-going-template-instantiations.cpp new file mode 100644 index 0000000000..7deef2120e --- /dev/null +++ b/test/Index/keep-going-template-instantiations.cpp @@ -0,0 +1,5 @@ +#include "missing.h" +#include + +// RUN: env CINDEXTEST_KEEP_GOING=1 c-index-test -test-load-source none -I%S/Inputs %s 2>&1 | FileCheck %s +// CHECK-NOT: error: expected class name -- cgit v1.2.3