cpp:SingleDeclarationPerStatement messed up with templates

Hello,

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.
Mt

Hi @mquinson,

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

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.