cpp:SingleDeclarationPerStatement messed up with templates


the cited rule gets fired on the following code:

template <class T> std::vector<void (*)(void*)> Extendable<T>::deleters_;

I guess that this is due to the template keyword at the beginning, but I’m not really sure here. This was seen in the wild at https://sonarcloud.io/project/issues?id=simgrid&issues=AWk3ehbLIjL5EafBc-gQ&open=AWk3ehbLIjL5EafBc-gQ

Thanks for this great tool – the new reports available since 10 days or so are really useful.

Hi @mquinson,

thank you for your report, I created a ticket on our side: CPP-2107.