C++ Core Guidelines Section "Expressions and statements" Rule 10 suggests to split declarations with multiple names into multiple single declarations. See the following example.
Example, bad.
std::vector<int> velocities(10, 0), numbers(other_numbers), inputs(input.begin(), input.end());
Example, good.
std::vector<int> velocities(10, 0); std::vector<int> numbers(other_numbers); std::vector<int> inputs(input.begin(), input.end());
Currently stalled, removed everyone from subscribers and reviewers for convenience.
Can you also register this check under the name cert-dcl04-c as well? It fits the behavior of that recommendation too (aside from the exceptions in the recommendation, but those can be handled later). This will also require adding a .rst file for that check name and having it redirect appropriately.
https://www.securecoding.cert.org/confluence/display/c/DCL04-C.+Do+not+declare+more+than+one+variable+per+declaration