[PATCH] D110130: [clangd] Semantic highlighting for lambda init-capture

2021-09-22 Thread Nathan Ridge via Phabricator via cfe-commits
nridge updated this revision to Diff 374130. nridge added a comment. address review comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D110130/new/ https://reviews.llvm.org/D110130 Files: clang-tools-extra/clangd/SemanticHighlighting.cpp cl

[PATCH] D110130: [clangd] Semantic highlighting for lambda init-capture

2021-09-21 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added a comment. Naming of the patch is a little bit confusing. We're actually dropping the semantic highlighting for the type of lambdacaptures, which was showing up in the declarator names since there was no explicit type spelled in the source code. This turns on highlighting for the

[PATCH] D110130: [clangd] Semantic highlighting for lambda init-capture

2021-09-21 Thread Nathan Ridge via Phabricator via cfe-commits
nridge added inline comments. Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:522 + // is the same as the location of the declared name itself. + if (StartLoc != D->getLocation()) { +auto &Tok = Note, I initially tried `D->getTypeS

[PATCH] D110130: [clangd] Semantic highlighting for lambda init-capture

2021-09-21 Thread Nathan Ridge via Phabricator via cfe-commits
nridge created this revision. nridge added a reviewer: kadircet. Herald added subscribers: usaxena95, arphaman. nridge requested review of this revision. Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. Repository: rG LLVM Github Monorepo