CodeQL library for C/C++
codeql/cpp-all 0.7.2 ( changelog , source )
Search

Module MetricFunction

Import path

import semmle.code.cpp.metrics.MetricFunction

Imports

cpp

Provides classes and predicates for working with C/C++ code.

Predicates

cyclomaticComplexityBranches

Gets the number of branching statements and expressions in a block. This is for computing cyclomatic complexity.

Classes

MetricFunction

A wrapper that provides metrics for a C/C++ function.