Issue 172072
Summary auto function parameter not reported as CXType_Auto
Labels new issue
Assignees
Reporter 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` )
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to