Skip to content
/ ccsm Public
forked from bright-tools/ccsm

C Code Source Metrics - tool to gather simple metrics from C code

License

Notifications You must be signed in to change notification settings

vasba/ccsm

 
 

Repository files navigation

ccsm

C Code Source Metrics - tool to gather simple metrics from C code (C++ will hopefully be supported in the future).

Metrics may provide insight into the size and complexity of code (both of which have potential impacts on the ability to effectively test & maintain it).

Some of the metrics are very straight forward (and arguably may not be particularly useful by themselves), for example the count of the number of 'if' conditions. Other metrics are built on these, such as the McCabe cyclomatic complexity measure.

The aim is to also include metrics in order to support the set specified by HIS.

Output is hierarchical - for example, the metrics relating to each function are output and the metrics for a file will include the functions relating to the functions within that file. A global wrap-up provides a top-level overview of all files.

CCSM is also able to check metrics against specified limits and output a warning in the case that the limit is not adhered to.

Comparison To Other Tools

Other tools are available which analyse C code for metrics. It's possible that the results for some of the metrics will vary slightly between the tools.

Useful Links

  1. C99 Draft

About

C Code Source Metrics - tool to gather simple metrics from C code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 73.6%
  • Shell 16.2%
  • C 8.8%
  • Other 1.4%