terryyin / lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.
Other
1.85k stars 250 forks source link

Fix template class function naming #132

Closed rakhimov closed 8 years ago

rakhimov commented 8 years ago

Functions defined inline template classes get their name mangled. The reason is that template parameters can contain class keyword, which makes Lizard jump to class state.

This patch simply ignores template parameters. The templates are currently not analyzed in Lizard, so this approach shouldn't break anything.


This change is Reviewable

terryyin commented 8 years ago

Wow, so much test for so little code. Great!