danmar/cppcheck — comment on commit 0d3bf5340d338f2a1795c81dfa2e0722a6f4e9d5
File:  line 0
By reif:

Cppcheck will primarily be used to check C++ code so I don't like the idea of C# code being processed in generic code. It just wastes CPU cycles for something that C++ users will never need. Adding C# support in generic code also unnecessarily complicates already complicated code.

A lot of the code in cppcheck is already incomprehensible because it was developed by trial and error in response to false positive tickets without any regard for false negatives rather than following a language grammar. Little hacks like this get put in and forgotten all through out cppcheck. Someone else comes along and fixes those hacks by adding other hacks (possibly in totally unrelated code). Adding C# and java support on top of that just makes things worse.

C# and java code should be converted to the C++ subset that cppcheck checks already support and expect or removed. If C# and java code can't be converted without introducing a huge number of false negatives, then it shouldn't be supported. it's probably not even used anyway. Cppcheck should follow the unix rule of doing only one thing and doing it well.