[clangd] Add a new highlighting kind for typedefs
authorIlya Biryukov <ibiryukov@google.com>
Mon, 9 Sep 2019 14:33:10 +0000 (14:33 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 9 Sep 2019 14:33:10 +0000 (14:33 +0000)
commite237520a8f5006692e25d7e5da7271f1c9832491
treeb9a43023de57e9802a14ee4aa688a8f9f9eada39
parent59608c0049531758b9cbb3c400a68d597b797bf4
[clangd] Add a new highlighting kind for typedefs

Summary:
We still attempt to highlight them as underlying types, but fallback to
the generic 'typedef' highlighting kind if the underlying type is too
complicated.

Reviewers: hokein

Reviewed By: hokein

Subscribers: nridge, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

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

llvm-svn: 371402
clang-tools-extra/clangd/SemanticHighlighting.cpp
clang-tools-extra/clangd/SemanticHighlighting.h
clang-tools-extra/clangd/test/semantic-highlighting.test
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp