danmar/cppcheck — pull request #71 by neuschaefer (2011-12-27 17:31:13+00:00)
Title: Tokenizer: better file type / language detection

motivation: std::string::find() is not that good a tool to get a file extension.

This branch breaks some code, though, please look at the FIXME comment in the diff of 7a562702.

And in lib/tokenize.cpp:7999 (Tokenizer::simplifyEnum) there's code that should probably also be changed:

// Don't simplify enums in java files
if (isJavaOrCSharp())
return;

Thanks,
Jonathan Neuschäfer