summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/keep-going-template-instantiations.cpp
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2019-03-07 10:13:50 +0000
committerIvan Donchevskii <ivan.donchevskii@qt.io>2019-03-07 10:13:50 +0000
commit878271b2945e89b868fb8daefea3dfaffce32710 (patch)
treef0f94102c32dede3e59498b4ed18d9db3d8fa1eb /clang/test/Index/keep-going-template-instantiations.cpp
parentfd4156ed4d30828fbcca7b42618dde0550c9b674 (diff)
downloadbcm5719-llvm-878271b2945e89b868fb8daefea3dfaffce32710.tar.gz
bcm5719-llvm-878271b2945e89b868fb8daefea3dfaffce32710.zip
[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
Diffstat (limited to 'clang/test/Index/keep-going-template-instantiations.cpp')
-rw-r--r--clang/test/Index/keep-going-template-instantiations.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Index/keep-going-template-instantiations.cpp b/clang/test/Index/keep-going-template-instantiations.cpp
new file mode 100644
index 00000000000..7deef2120ed
--- /dev/null
+++ b/clang/test/Index/keep-going-template-instantiations.cpp
@@ -0,0 +1,5 @@
+#include "missing.h"
+#include <keep-going-template-instantiations.h>
+
+// 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
OpenPOWER on IntegriCloud