]> granicus.if.org Git - clang/commit
[index] C++: Improve handling of typedefs as base names in C++ class declarations
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 4 Mar 2017 17:54:56 +0000 (17:54 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 4 Mar 2017 17:54:56 +0000 (17:54 +0000)
commite54da63eff9841ab999df5d2231f8d1da73f2e4a
treedd2dd3c1f31acf8d9085a0cb0aa75df3fa38e5b9
parentea71a9a14a65c086f5737c4db7f28998404d6d7b
[index] C++: Improve handling of typedefs as base names in C++ class declarations

Report the typedef as reference, and desugar it to report the underlying class as an
implicit 'base' reference.
Reporting the underlying base class for 'base' relations matches the ObjC handling and
leads to a simpler model.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296975 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Index/IndexTypeSourceInfo.cpp
test/Index/Core/index-source.cpp