Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Counting lines of code

I was doing some research on line counters for C++ projects and I'm very interested in algorithms they use. Does anyone know where can I look at some implementation of such algorithms?

like image 708
smallB Avatar asked Jul 04 '12 15:07

smallB


1 Answers

There's cloc, which is a free open-source source lines of code counter. It has support for many languages, including C++. I personally use it to get the line count of my projects.

At its sourceforge page you can find the perl source code for download.

like image 67
stelonix Avatar answered Oct 01 '22 14:10

stelonix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!