[PATCH] D11976: [libclang] Return deduced type for auto type, not the one written in the source.
Sergey Kalinichev via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 22 01:38:51 PDT 2015
skalinichev added a comment.
This is actually an unrelated issue (clang_getTypeDeclaration doesn't handle the auto type)
Using "c-index-test -test-print-type --std=c++14" on your example I get:
VarDecl=z ... [type=std::basic_string<char>] ...
So, as you can see, "z" has correct type.
Anyway here is a quick fix for clang_getTypeDeclaration (will create a review request for it later on): https://paste.kde.org/p1fiwhery
http://reviews.llvm.org/D11976
More information about the cfe-commits
mailing list