Skip to content

Call Graph Same Function Name #3

@yavuzkoroglu

Description

@yavuzkoroglu

In C, it is possible to have two or more units (.c files) where every unit contains a function with the same name. In that case, it may be impossible to decide the target of a function call without compiling the code.

Currently, when such a call occurs, the Call Graph (CG) generator first looks for a callee in the same unit. If there is one, the CG generator makes a solid connection to that function. If not, then the CG generator connects the caller to all possible callees with a dashed line. When computing the Response For Unit (RFU) metric, which is the same as Response For Class (RFC) metric for Java, if the user asks for the transitive closure with the --RFU-Transitive option, all the dashed connections count as one no matter how many, but all the calls from these functions are summed up, which may inflate the final RFU value for a unit.

I am open to suggestions on how to resolve the target in case of same function name used in multiple units.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersquestionFurther information is requestedwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions