aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2016-04-28 15:01:19 -0400
committerJason Merrill <jason@gcc.gnu.org>2016-04-28 15:01:19 -0400
commitb632761d2c6a6575a3d4f1b3a03dd1701bf1a087 (patch)
tree0f443efe47d371ec7fe124b59afcaef0d9fe8d67 /gcc/go
parentbabaa9df0279b16243acc58c9a5d7731f4882af4 (diff)
downloadgcc-b632761d2c6a6575a3d4f1b3a03dd1701bf1a087.zip
gcc-b632761d2c6a6575a3d4f1b3a03dd1701bf1a087.tar.gz
gcc-b632761d2c6a6575a3d4f1b3a03dd1701bf1a087.tar.bz2
Implement C++17 [[nodiscard]] attribute.
PR c++/38172 PR c++/54379 gcc/c-family/ * c-lex.c (c_common_has_attribute): Handle nodiscard. gcc/cp/ * parser.c (cp_parser_std_attribute): Handle [[nodiscard]]. * tree.c (handle_nodiscard_attribute): New. (cxx_attribute_table): Add [[nodiscard]]. * cvt.c (cp_get_fndecl_from_callee, cp_get_callee_fndecl): New. (maybe_warn_nodiscard): New. (convert_to_void): Call it. From-SVN: r235597
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions