Example of CMT++ Report (default short tabular form)
******************************************************************************
* CMT++, Complexity Measurement Tool for C/C++/C#, Version 6.0 *
* *
* COMPLEXITY MEASURES REPORT *
* *
* Copyright (c) 1993-2013 Testwell Oy *
* Copyright (c) 2013-2015 Verifysoft Technology GmbH *
******************************************************************************
This report was produced at Wed Aug 26 08:39:02 2015
Options: -o report.txt
File: stack.h
Line Measured object v(G) LOCphy LOCpro c% V B MI
==============================================================================
60 stack.h 2 60 22 343 0.09 118
==============================================================================
File: stack.cpp
Line Measured object v(G) LOCphy LOCpro c% V B MI
==============================================================================
32 Stack::
32 Stack() 1 18 6 56 0.01 150
51 ~Stack() 1 12 4 27 0.01 160
64 clear() 1 12 4 33 0.01 159
77 height() 1 12 4 29 0.01 159
90 push() 3 24 14 288 0.10 130
115 pop() 2 18 7 94 0.03 141
134 top() 2 17 7 100 0.03 143
152 element() 1 1 1- 52 0.01 150
152 stack.cpp 5 152 49 972 0.41 143
==============================================================================
File: demofile.h
Line Measured object v(G) LOCphy LOCpro c% V B MI
==============================================================================
8 MyClass::
8 MyClass() 1 3 3- 20- 0.00 137
11 ~MyClass() 1 3 2 20- 0.00 137
18 demofile.h 1 18 12 - 156 0.04 142
==============================================================================
File: demofile.cpp
Line Measured object v(G) LOCphy LOCpro c% V B MI
==============================================================================
9 MyClass::
9 foo1() 6 6 6 164 0.04 114
16 foo2() 2 8 8 113 0.03 112
25 SomeFunction() 5 17 17 - 209 0.07 96
41 demofile.cpp 11 41 33 - 620 0.22 120
==============================================================================
OVERALL SUMMARY:
4 Files 13 Functions
Measure Alarmed % Limits Alarmed % Limits
=========================== ======================= ========================
Complexity (extended) v(G) 0 0 1-100 0 0 1-10
Program lines LOCpro 0 0 4-400 2 15 4-40
Comment % 2 50 30-75 1 7 30-75
Volume V 0 0 100-8000 2 15 20-1000
Estimated number of bugs B 0 0 0-2 0 0 n/a
Maintainability index MI 0 0 65- 0 0 65-
=========================== ======================= ========================
Total 2 8 5 7
Files: 4 LOCphy: 271 LOCbl: 45 LOCpro: 116 LOCcom: 113 ';': 51
v(G) : 16 MI without comments : 107 MI comment weight : 40 MI: 147