]> granicus.if.org Git - clang/commit
[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)
commitc689f6622f89dba2c01ea03462318006dac4785b
tree6d453859e98b09ecd59dd0eda74af8fe920ca7e0
parent65a595e5a4ea123e28be06dd382e0b6d7359d2df
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288220 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExceptionSpec.cpp
test/SemaCXX/builtin-exception-spec.cpp
test/SemaCXX/cxx1z-noexcept-function-type.cpp