The Unified Code Counter (UCC) is a comprehensive software lines of code counter produced by the USC Center for Systems and Software Engineering. It is available to the general public as open source code and can be compiled with any ANSI standard C++ compiler.
https://cssedr.usc.edu:4443/csse-tools
// forked to github by thecarnie (no affiliation)