Complex code is likely to contain more errors than a straitforward code. Therefore metrics like McCabe Cyclomatic Number, Halsteads Software Science Metrics and Line-of-Code-Metrics should be used.
Testwell CMT++ permet d´analyser la complexité des codes écrits en C et C++.