Skip to content

[api_summary] Track parameter default values #2461

Description

@kevmoo

Currently, api_summary tracks parameter names and types for methods/functions, but does not track parameter default values (e.g. void f([int x = 1])). Modifying a default value (e.g. from 1 to 2) is a silent behavioral breaking change for consumers relying on the previous defaults, but api_summary does not generate a diff.

Example

Changing:

void f([int x = 1]) {}

to:

void f([int x = 2]) {}

currently produces identical api_summary output.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions