Module Metrics_cilast

module Metrics_cilast: sig .. 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.


class type sloc_visitor = object .. end
Syntactic metrics ================= The goal is to collect various (syntactic) information about the source code (slocs, assignments, loops, ...).
class slocVisitor : sloc_visitor
val get_metrics : unit -> Metrics_base.BasicMetrics.t
val compute_on_cilast : unit -> unit
Compute metrics on whole CIL AST