[PATCH] D66723: [clangd] Add a distinct highlighting for local variables
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 26 01:27:47 PDT 2019
kadircet added inline comments.
================
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:229
+ if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
+ if (VD->isLocalVarDecl()) {
+ addToken(Loc, HighlightingKind::LocalVariable);
----------------
nit: `addToken(Loc, VD->isLocalVarDecl() ? HighlightingKind::LocalVariable : HighlightingKind::Variable)`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66723/new/
https://reviews.llvm.org/D66723
More information about the cfe-commits
mailing list