diff options
author | David Malcolm <dmalcolm@redhat.com> | 2017-06-21 16:11:36 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2017-06-21 16:11:36 +0000 |
commit | 113459fad35faf22bcc72cee950e8f2ae573eb6f (patch) | |
tree | c2c83dd1eec5d1c040a6baba3c186f4de2b3dbf4 /gcc/go | |
parent | b10f10092ebcee637d04788f2ac8b72644dbba34 (diff) | |
download | gcc-113459fad35faf22bcc72cee950e8f2ae573eb6f.zip gcc-113459fad35faf22bcc72cee950e8f2ae573eb6f.tar.gz gcc-113459fad35faf22bcc72cee950e8f2ae573eb6f.tar.bz2 |
C++: Add fix-it hints for -Wold-style-cast
gcc/cp/ChangeLog:
* parser.c (get_cast_suggestion): New function.
(maybe_add_cast_fixit): New function.
(cp_parser_cast_expression): Capture the location of the closing
parenthesis. Call maybe_add_cast_fixit when emitting warnings
about old-style casts.
gcc/testsuite/ChangeLog:
* g++.dg/other/old-style-cast-fixits.C: New test case.
From-SVN: r249461
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions