After seeing all of the cloc posts in this thread, I felt like doing a closer analysis of some of my stuff with it.
Game dev framework (
http://libstem.org/) implementation:
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
C 53 1791 862 8255
C/C++ Header 64 832 1344 2006
Objective C 9 285 157 1482
-------------------------------------------------------------------------------
SUM: 126 2908 2363 11743
-------------------------------------------------------------------------------
Game dev framework test code:
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
C 53 1991 38 15773
C/C++ Header 2 20 2 157
-------------------------------------------------------------------------------
SUM: 55 2011 40 15930
-------------------------------------------------------------------------------
Most recent game using my framework:
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
C 74 2190 1307 11353
C/C++ Header 78 964 1333 2359
-------------------------------------------------------------------------------
SUM: 152 3154 2640 13712
-------------------------------------------------------------------------------
The entire framework was written with strict TDD, so it's not too surprising that test code is the largest. What does surprise me is that there are nearly as many comments per lines of code in the game as in the framework. I'm a very sparse commenter, preferring to write code that explains itself, but I do like to document my public APIs when they need it.