]> granicus.if.org Git - clang/commit
Make NoThrow FunctionLike, make FunctionLike include references, fix
authorErich Keane <erich.keane@intel.com>
Mon, 3 Jun 2019 18:36:33 +0000 (18:36 +0000)
committerErich Keane <erich.keane@intel.com>
Mon, 3 Jun 2019 18:36:33 +0000 (18:36 +0000)
commitd61c1added2308a5e6b81b06831084bffa743e8e
tree39b5a314abac70646007eef4fdacb43ca32a9055
parent3b2e3bff2defeb6a4e4c616cce8cfdea51d44b6a
Make NoThrow FunctionLike, make FunctionLike include references, fix
prettyprint

__declspec(nothrow) should work on function pointers as well as function
references, so this changes it to FunctionLike.  Additionally,
FunctionLike needed to be modified to permit function references.

Finally, the TypePrinter didn't properly print the NoThrow exception
specifier, so make sure we get that right as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362435 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Type.h
include/clang/Basic/Attr.td
lib/AST/DeclBase.cpp
lib/AST/TypePrinter.cpp
test/Misc/pragma-attribute-supported-attributes-list.test
test/SemaCXX/nothrow-vs-exception-specs.cpp