Skip to main content
GameDev.net gamedev.net
🔒 Locked

Source Code Statistics?

Started by Doggan Apr 7, 2006 at 1:06 AM 0 replies 1k views
Original Post
Doggan
Doggan
I'm trying to find a tool that will count # of lines of code, # of classes/structs, # of files... I just downloaded some project from SourceForge called CodeCounter... and it completely sucks. Crashes half the time. It's recursive directory parsing is foobared. Ugh. I've used some tool before that was actually built in to VC++. Anyone have some links to a free tool that will do what I need? This is for C++ btw. Thanks :)
uavfun
uavfun
SLOCCount is the great granddaddy of all useless but impressive-sounding source code size statistic generators - it will go through a whole directory, count everything, and make a little table explaining how totally awesome you are. Unix-y command line thing, but runs fine using cygwin with minimal fiddling.

WndTabs.com's Line Counter (used to be called Project Line Counter, seems to be just Line Counter now...) is simpler but plugs straight into VS. Goes through your solution or project, rather than a directory.

Both will give you the number of lines of code of various types and number of files, but I don't think they count data types and such. Doxygen might do it somehow... it can make a list, at the very least.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.