Class type Metrics_cilast.sloc_visitor

class type sloc_visitor = object .. end

Visitor to compute various syntactic metrics. In particular, it fetches all necessary informations to compute cyclomatic complexity .

Syntactic metrics ================= The goal is to collect various (syntactic) information about the source code (slocs, assignments, loops, ...). From those one can compute McCabe's cyclomatic complexity.

Inherits
method fundecl_calls : int Metrics_base.VInfoMap.t
method funspec_calls : int Metrics_base.VInfoMap.t
method fundef_calls : int Metrics_base.VInfoMap.t
method extern_global_vars : Metrics_base.VInfoSet.t
method get_global_metrics : Metrics_base.BasicMetrics.t
method pp_file_metrics : Stdlib.Format.formatter -> Datatype.Filepath.t -> unit
method pp_detailed_text_metrics : Stdlib.Format.formatter -> unit

Print results of all file and functions to the given formatter as text

Print results of all file and functions to the given formatter as text

method print_stats : Stdlib.Format.formatter -> unit

Print computed metrics to a formatter

Print computed metrics to a formatter

method get_metrics_map : Metrics_base.BasicMetrics.t Metrics_base.OptionKf.Map.t
Datatype.Filepath.Map.t

Compute and return per-function metrics

Compute and return per-function metrics