[clangd] Highlight typedefs to template parameters as template parameters
authorIlya Biryukov <ibiryukov@google.com>
Mon, 9 Sep 2019 09:37:17 +0000 (09:37 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 9 Sep 2019 09:37:17 +0000 (09:37 +0000)
commitd5588293a8c8093e0014229401e541edc7acf5d5
tree35319ababfb28e6b70dda49a3fe34fbc226d15bd
parent63d5d162377e1290990221560c9cd2e571491d6a
[clangd] Highlight typedefs to template parameters as template parameters

Summary:
Template parameters were handled outside `addType`, this led to lack of highlightings for typedefs
to template types.

This was never desirable, we want to highlight our typedefs as their underlying type.
Note that typedefs to more complicated types, like pointers and references are still not highlighted.

Original patch by Johan Vikström.

Reviewers: hokein, jvikstrom

Reviewed By: hokein

Subscribers: nridge, javed.absar, kristof.beyls, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66516

llvm-svn: 371379
clang-tools-extra/clangd/SemanticHighlighting.cpp
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp