aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2017-06-21 16:11:36 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2017-06-21 16:11:36 +0000
commit113459fad35faf22bcc72cee950e8f2ae573eb6f (patch)
treec2c83dd1eec5d1c040a6baba3c186f4de2b3dbf4 /gcc/go
parentb10f10092ebcee637d04788f2ac8b72644dbba34 (diff)
downloadgcc-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