Function Elements

Every function (C function or function like macro) is associated with a page like the following.

Function: format (C function)

Details

Metrics

MetricValue
Number of characters3237
Number of comment characters204
Number of space characters767
Number of line comments0
Number of block comments7
Number of lines133
Maximum number of characters in a line95
Number of character strings15
Number of unprocessed lines0
Number of C preprocessor directives0
Number of processed C preprocessor conditionals (ifdef, if, elif)0
Number of defined C preprocessor function-like macros0
Number of defined C preprocessor object-like macros0
Number of preprocessed tokens962
Number of compiled tokens1012
Number of statements or declarations113
Number of operators176
Number of unique operators15
Number of numeric constants22
Number of character literals43
Number of if statements17
Number of else clauses2
Number of switch statements2
Number of case labels19
Number of default labels2
Number of break statements14
Number of for statements2
Number of while statements1
Number of do statements0
Number of continue statements2
Number of goto statements0
Number of return statements1
Number of project-scope identifiers53
Number of file-scope (static) identifiers2
Number of macro identifiers9
Total number of object and object-like identifiers259
Number of unique project-scope identifiers12
Number of unique file-scope (static) identifiers2
Number of unique macro identifiers5
Number of unique object and object-like identifiers34
Number of global namespace occupants at function's top1063
Number of parameters4
Maximum level of statement nesting4
Number of goto labels0
Fan-in (number of calling functions)2
Fan-out (number of called functions)14
Cyclomatic complexity (control statements)23
Extended cyclomatic complexity (includes branching operators)27
Maximum cyclomatic complexity (includes branching operators and all switch branches)44
Structure complexity (Henry and Kafura)784
Halstead volume3416.45
Information flow metric (Henry and Selig)18032

Main page — Web: Home Manual


From this page you can refactor the function's arguments (more on this in the next section) and obtain the following data.

All Functions

The all functions page will list all the functions (C functions and function-like macros) defined or declared in the CScout workspace. In moderately sized projects, you can use it as a starting point for jumping to a function; in larger projects it is probably useful only as a last resort.

Project-scoped writable functions

This page contains all the writable functions that are globaly visible. The page does not list function-like macros.

File-scoped writable functions

This page contains all the writable functions that are visible only within the context of a single file. This include C functions declared as static, and function-like macros.

Writable functions that are not directly called

This page will list all writable functions that are never directly called. The most probable cause is that the corresponding functions are called through a pointer, but some may be historic leftovers - candidates for removal.

Writable functions that are called exactly once

Functions that are called exactly once may be candidates for inlining.