Skip to content

Wrong cyclomatic complexity calculation? #2

Open
@ryoqun

Description

@ryoqun

Hi,

Well, just a quick question. Divergent from the header comment, P is missing in the code: https://github.com/ephox-gcc-plugins/cyclomatic_complexity/blob/master/cyc_complexity_plugin.c#L36

As far as my vague understanding, any return statements in C should be counted as exit nodes from the function, shouldn't are?

Is this intentional?

Ref: torvalds/linux@0dae776

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions