diff options
author | Erich Keane <erich.keane@intel.com> | 2017-09-28 20:36:53 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2017-09-28 20:36:53 +0000 |
commit | c372e15c4e4a448e43924ad3405e81ed771c928c (patch) | |
tree | 16f4cc37d737c210ddb72f643ac893d675be7134 /llvm/tools/llvm-rc/ResourceScriptParser.cpp | |
parent | 8eec6dde6a7df7ba8d5916da512bcc28384ee3ef (diff) | |
download | bcm5719-llvm-c372e15c4e4a448e43924ad3405e81ed771c928c.tar.gz bcm5719-llvm-c372e15c4e4a448e43924ad3405e81ed771c928c.zip |
[Sema] Warn on attribute nothrow conflicting with language specifiers
I discovered it was possible to create a 'nothrow' noexcept(false)
function, which is both non-sensical as well as seemingly breaking.
This patch warns if attribute nothrow is used with anything besides "noexcept".
"noexcept(true)" isn't possible, because the noexcept decl isn't parsed until
later.
Differential Revision: https://reviews.llvm.org/D38205
llvm-svn: 314461
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceScriptParser.cpp')
0 files changed, 0 insertions, 0 deletions