Index: tools/libclang/CXType.cpp =================================================================== --- tools/libclang/CXType.cpp +++ tools/libclang/CXType.cpp @@ -411,7 +411,13 @@ D = cast(TP)->getTemplateName() .getAsTemplateDecl(); break; - + + case Type::Auto: + TP = cast(TP)->getDeducedType().getTypePtrOrNull(); + if (TP) + goto try_again; + break; + case Type::InjectedClassName: D = cast(TP)->getDecl(); break;