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.
Homepage: http://csse.usc.edu/ucc_new/wordpress/
This repo contains a copy of latest released version 2018.07 sources:
Finally! Our next, and last, UCC release! We have decided to focus on UCC-Java, so that it has all the features UCC currently does. Hence, I have decided to make this release available to everyone.
Release notes, user manual are available as PDFs. Also you can find line count and cyclomatic complexity metric calculation rules in Counting Rules
subdirectory.
The tool successfully compiles under Linux, yet it's somewhat buggy and doesn't provide complete support for modern languages' standards.