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)
commitbf37536a351a2db55efe830437866010ae050eea
tree0461135e2f85fd0422730863abd3eda088f24710
parent81ef625080cb7097044b4461fee0ac5567a44c75
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.

llvm-svn: 362435
clang/include/clang/AST/Type.h
clang/include/clang/Basic/Attr.td
clang/lib/AST/DeclBase.cpp
clang/lib/AST/TypePrinter.cpp
clang/test/Misc/pragma-attribute-supported-attributes-list.test
clang/test/SemaCXX/nothrow-vs-exception-specs.cpp