Skip to content

auto function parameter not reported as CXType_Auto #172072

@Serafean

Description

@Serafean

with the function:

int bar(auto p){};

using the C api,

  • auto is reported as a TypeRef with kind unexposed
  • p is reported as ParmDecl with kind unexposed

I believe it should be only reporting p as ParmDecl with type Auto ( CXType_Auto in Index.h), not visiting the "auto" keyword at all. (Same as happens with VarDecl in the case of auto i = 42 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions