[PATCH] D51281: [libclang] Return the proper pointee type for 'auto' deduced to pointer

Michael Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 28 20:09:45 PDT 2018

michaelwu added a comment.

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.

Comment at: tools/libclang/CXType.cpp:448
+    case Type::Auto:
+      TP = cast<DeducedType>(TP)->getDeducedType().getTypePtrOrNull();
Seems like this might make sense for `Type::DeducedTemplateSpecialization` too.


More information about the cfe-commits mailing list