microsoft / Range-V3-VS2015
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 1,315 units with 7,354 lines of code in units (21.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (89 lines of code)
    • 27 simple units (642 lines of code)
    • 1,285 very simple units (6,623 lines of code)
0% | 0% | 1% | 8% | 90%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
hpp0% | 0% | 1% | 8% | 90%
cpp0% | 0% | 0% | 18% | 81%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
include/range/v3/algorithm0% | 0% | 5% | 39% | 54%
include/range/v3/action0% | 0% | 4% | 0% | 95%
example0% | 0% | 0% | 34% | 65%
include/range/v3/utility0% | 0% | 0% | 3% | 96%
include/range/v3/view0% | 0% | 0% | 1% | 98%
include/range/v30% | 0% | 0% | 3% | 96%
perf0% | 0% | 0% | 0% | 100%
include/meta0% | 0% | 0% | 0% | 100%
include/range/v3/numeric0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
inline I unguarded_partition()
in include/range/v3/algorithm/sort.hpp
24 24 4
static bool four_iter_impl()
in include/range/v3/algorithm/permutation.hpp
38 18 7
auto operator()
in include/range/v3/action/action.hpp
27 15 0
constexpr cardinality transform2_cardinality()
in include/range/v3/view/transform.hpp
10 10 2
static I impl()
in include/range/v3/algorithm/partition.hpp
24 9 5
static range rotate_forward()
in include/range/v3/algorithm/rotate.hpp
32 9 3
static I1 impl()
in include/range/v3/algorithm/search.hpp
28 9 7
static I impl()
in include/range/v3/algorithm/search_n.hpp
28 9 6
static I impl()
in include/range/v3/algorithm/stable_partition.hpp
59 9 7
int main()
in example/calendar.cpp
38 8 2
bool nocheck()
in include/range/v3/algorithm/equal.hpp
11 8 7
static I impl()
in include/range/v3/algorithm/partition.hpp
22 8 5
static I1 sized_impl()
in include/range/v3/algorithm/search.hpp
32 8 9
static I sized_impl()
in include/range/v3/algorithm/search_n.hpp
32 8 7
static tagged_pair impl()
in include/range/v3/algorithm/unique_copy.hpp
23 8 7
static tagged_pair impl()
in include/range/v3/algorithm/unique_copy.hpp
23 8 7
static tagged_pair impl()
in include/range/v3/algorithm/unique_copy.hpp
18 8 7
static I impl()
in include/range/v3/algorithm/stable_partition.hpp
39 7 7
static I impl()
in include/range/v3/algorithm/stable_partition.hpp
25 7 5
auto operator()
in include/range/v3/utility/functional.hpp
5 7 0