Skip to content

Commit

Permalink
Clarify function metrics processing
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinellis committed Jul 13, 2024
1 parent f23da7c commit e898a92
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/funmetrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ class FunMetrics : public Metrics {
em_nnconst, // Number of numeric constants
em_nclit, // Number of character literals
em_ncc2op, // (INT) Number of operators contributing to cc2: &&, ||, ?:
// Keywords counted during identifier processing
/*
* Keywords counted during identifier processing that takes
* place when each file is post-processed.
*/
em_nif, // Number of if statements
em_nelse, // Number of else clauses
em_nswitch, // Number of switch statements
Expand All @@ -110,7 +113,11 @@ class FunMetrics : public Metrics {
em_ncontinue, // Number of continue statements
em_ngoto, // Number of goto statements
em_nreturn, // Number of return statements
// Identifiers categorized during identifier processing
/*
* Identifiers (total and unique) categorized during
* identifier processing that takes place when each
* file is post-processed.
*/
// The following four lines must match the next four
em_npid, // Number of project-scope identifiers
em_nfid, // Number of file-scope (static) identifiers
Expand Down

0 comments on commit e898a92

Please sign in to comment.