summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/update-exception-spec.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-03-23 03:25:59 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-03-23 03:25:59 +0000
commit9e2341d0930b735b4ec91c389c736db3eda6ca4c (patch)
tree719addc46e4686382124735d4903d4aed289809d /clang/test/Modules/update-exception-spec.cpp
parent1e1b0f732a5799cfcc92267ca43512b9dedeec8a (diff)
downloadbcm5719-llvm-9e2341d0930b735b4ec91c389c736db3eda6ca4c.tar.gz
bcm5719-llvm-9e2341d0930b735b4ec91c389c736db3eda6ca4c.zip
[modules] Remove redundant import of lexical decls when building a lookup table
for a DeclContext, and fix propagation of exception specifications along redeclaration chains. This reverts r232905, r232907, and r232907, which reverted r232793, r232853, and r232853. One additional change is present here to resolve issues with LLDB: distinguish between whether lexical decls missing from the lookup table are local or are provided by the external AST source, and still look in the external source if that's where they came from. llvm-svn: 232928
Diffstat (limited to 'clang/test/Modules/update-exception-spec.cpp')
-rw-r--r--clang/test/Modules/update-exception-spec.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/update-exception-spec.cpp b/clang/test/Modules/update-exception-spec.cpp
new file mode 100644
index 00000000000..bccdddc9c09
--- /dev/null
+++ b/clang/test/Modules/update-exception-spec.cpp
@@ -0,0 +1,6 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -fexceptions -fcxx-exceptions -fmodules -fmodules-cache-path=%t -I%S/Inputs/update-exception-spec -emit-llvm-only %s
+#include "a.h"
+void use(B *p);
+#include "c.h"
+void use(B *p) { g(p); }
OpenPOWER on IntegriCloud