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

Ignore C++11 unnamed namespace for qualifications #75

Closed rakhimov closed 9 years ago

rakhimov commented 9 years ago

Nesting unnamed namespace adds extra :: to the qualification.

namespace real { namespace { void foo(int) {...} } }

The function is qualified as real::::foo instead of just real::foo.

Review on Reviewable

terryyin commented 9 years ago

Thanks! I wish Python has the Ruby list.compact method:-)