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

I created a patch for the gui so it will determine the language and set it before checking each file. I didn't test it, I just made sure it compiles. So I'm not sure if it works perfectly. It's just for illustration.

http://hem.passagen.se/danma/language-patch.txt

Yes you can perhaps make some minor tweaks in the code using Qt/wxWidgets/etc. But Qt can't be used to check if the file extension indicates that a file contains C/C++ code can it? So the ".c" and ".cpp" etc must be hardcoded. Now.. if we rewrite the same behaviour using different toolkits then the risk we get bugs increase.

So.. you still want that we duplicate this behaviour in every client?