[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)
commit898c241b26d166e7981875a71eb925468d393d5c
tree1bcdee634622aa8ecadb7c4307fc32cd1074fc66
parent266cfa30dc1435ab93cac91706f742600d11404f
[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.

llvm-svn: 296975
clang/lib/Index/IndexTypeSourceInfo.cpp
clang/test/Index/Core/index-source.cpp