Closed
Description
For stylistic reasons, we want it to be consistently in the code that enumerators do not have an extra comma at the end.
So he should warn about the extra ,
here, e.g.,:
enum MyEnum
{
A,
B,
};
-Wc++98-compat-pedantic
contains a warning for this:
warning: commas at the end of enumerator lists are incompatible with C++98
But there exists no way to say I only want the warning for the unnecessary comma, but not the other warnings. So a warning -Wc++98-compat-enumerator-comma
would be nice.