[c++1z] Improve support for -fno-exceptions: we can't just ignore exception
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 30 Nov 2016 00:13:55 +0000 (00:13 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 30 Nov 2016 00:13:55 +0000 (00:13 +0000)
commit13b40bcc0322e27eaa61b459dec8f898ea1f069d
tree51a5ed63dc1f7c26db52b4132d2246b35693d45c
parentf9b191f1356d29fa44f631a1b8454a80d28763a6
[c++1z] Improve support for -fno-exceptions: we can't just ignore exception
specifications in this mode in C++17, since they're part of the function type,
so check and diagnose them like we would if exceptions were enabled.

Better ideas welcome.

llvm-svn: 288220
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaExceptionSpec.cpp
clang/test/SemaCXX/builtin-exception-spec.cpp
clang/test/SemaCXX/cxx1z-noexcept-function-type.cpp