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

Add a test for Nvidia CUDA dialect <<< and >>> #148

Closed rakhimov closed 8 years ago

rakhimov commented 8 years ago

The current implementation in Lizard doesn't recognize these special tokens. However, the use cases do not affect the complexity metrics, which is more important than accurate token count.

Originally, Lizard recognized '>>>' token, but it broke C++11 template code as in PR #68. The current strategy of ignoring these dialect tokens seems to be good enough.


This change is Reviewable