This is an archive of the discontinued LLVM Phabricator instance.

[libclang] Return the proper pointee type for 'auto' deduced to pointer
ClosedPublic

Authored by yvvan on Aug 26 2018, 11:40 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

yvvan created this revision.Aug 26 2018, 11:40 PM

It shouldn't be too hard to make a test using c-index-test. -test-print-type will print out the pointee type if it's valid.

tools/libclang/CXType.cpp
448 ↗(On Diff #162617)

Seems like this might make sense for Type::DeducedTemplateSpecialization too.

You are completely right! Thanks!
I did not think that -test-print-type also checks for the pointee.

yvvan updated this revision to Diff 164151.Sep 5 2018, 11:44 PM

Comments addressed

This revision is now accepted and ready to land.Sep 6 2018, 9:14 PM
This revision was automatically updated to reflect the committed changes.