Re: [PATCH 1/3] Fix mismatched struct vs class tags.

Simon Marchi
2016-11-23T20:58:15Z

On 2016-11-23 15:06, John Baldwin wrote:
> The 'collection_list' and 'number_or_range_parser' types were converted
> from structs to classes, but some code still used 'struct'. Fix all
> references to use 'class' which fixes -Wmismatched-tags warnings issued
> by clang.

Whjen using the type in a parameter or variable declaration, should we
simply drop the keyword?

For example:

- struct collection_list *collect;
+ collection_list *collect;

That's the approach I took in my upcoming C++ patches, so I hope it's ok
:). I have also dropped the "enum" keyword when possible.