[PATCH 3/3] change class-key of PODs to struct and others to class (PR 61339)
Martin Sebor
msebor@gmail.com
Mon Jul 8 22:04:00 GMT 2019
The attached patch changes the class-key used in class and struct
declarations and in other declarations and expressions that refer
to them to match the class-key used in their definition. This
part of the series lets GCC compile with just a small number of
-Wmsmatched-tags instances (down from over 3,000 without it).
I initially tried to make the changes using the same approach as
in part 2 of the series but that didn't work as well so I decided
on a brute force approach using find and sed, and tweaking the rest
by hand. There are a small number of outstanding inconsistent
declarations that still need to be adjusted. Most of them are
in generated code that I haven't yet figured how to change to
use the correct class-key.
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-61339-tag-cleanup.diff.gz
Type: application/gzip
Size: 197411 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190708/cb851e77/attachment.gz>
More information about the Gcc-patches
mailing list