]> granicus.if.org Git - clang/commit
[libclang] Return deduced type for auto type, not the one written in the source.
authorManuel Klimek <klimek@google.com>
Thu, 3 Sep 2015 16:11:10 +0000 (16:11 +0000)
committerManuel Klimek <klimek@google.com>
Thu, 3 Sep 2015 16:11:10 +0000 (16:11 +0000)
commit7f4ff5e222380cddf16c9fbf8fb28f38bc6c184c
tree6e74c25ceb9aa9601790c3ed68e8826e9e6a8500
parente6aa23f9072c683047d3d682fe0bbc63ec0074d1
[libclang] Return deduced type for auto type, not the one written in the source.

It used to work, but was accidentally broken by r179769.
The issue with decayed types was fixed by r190796.
So this patch partially reverts r179769, and adds more tests.

This also fixes PR 18669.

Patch by Sergey Kalinichev.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246778 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/python/tests/cindex/test_type.py
test/Index/print-type.cpp
tools/libclang/CXType.cpp