diff options
| author | Johan Vikstrom <jvikstrom@google.com> | 2019-08-12 07:45:12 +0000 |
|---|---|---|
| committer | Johan Vikstrom <jvikstrom@google.com> | 2019-08-12 07:45:12 +0000 |
| commit | fd5ea1b0d904dc8f9793fcdf7699d10009f6a45f (patch) | |
| tree | 500e81d5ab468a1fd29948c9c271ea311362d85e /libcxx | |
| parent | 4b9d20008bbcc3cc4a36dca73e7ccec16779abd6 (diff) | |
| download | bcm5719-llvm-fd5ea1b0d904dc8f9793fcdf7699d10009f6a45f.tar.gz bcm5719-llvm-fd5ea1b0d904dc8f9793fcdf7699d10009f6a45f.zip | |
[clangd] Highlighting auto variables as the deduced type.
Summary:
Done in VisitDeclaratorDecl as the AutoTypeLoc is not deduced.
Scoped to only work for variables.
auto function return values need to be handled in a special way (separate patch for that).
auto's that are in lambdas ar enot highlighted as we don't highlight their underlying type (it's a RecordDecl, but the name is not an identifier so it returns in addToken).
Reviewers: hokein, ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D65996
llvm-svn: 368546
Diffstat (limited to 'libcxx')
0 files changed, 0 insertions, 0 deletions

