PR41991: Accept attributes on defaulted and deleted friends.
authorRichard Smith <richard@metafoo.co.uk>
Fri, 31 Jan 2020 01:42:17 +0000 (17:42 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Fri, 31 Jan 2020 01:42:17 +0000 (17:42 -0800)
commit5ae6554a1dcd2e39346030c06d364492901c9e8d
tree17cb908dacf2dcd9e43cdec7071b78e6f27b6b51
parent1f3f8c369a5067a132c871f33a955a7feaea8534
PR41991: Accept attributes on defaulted and deleted friends.

Attributes are permitted on friend definitions, but we only checked for
a proper function body, not for the =default / =delete cases.
clang/lib/Parse/ParseDeclCXX.cpp
clang/test/Parser/cxx-default-delete.cpp
clang/test/Parser/cxx2a-spaceship.cpp