This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Add a distinct highlighting for local variables
ClosedPublic

Authored by nridge on Aug 25 2019, 2:47 PM.

Diff Detail

Event Timeline

nridge created this revision.Aug 25 2019, 2:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 25 2019, 2:47 PM
ilya-biryukov added inline comments.Aug 26 2019, 1:04 AM
clang-tools-extra/clangd/SemanticHighlighting.h
39

NIT: maybe put it right after Variable? IIUC, we do not rely on actual numeric values being the same across different clangd versions.

kadircet added inline comments.Aug 26 2019, 1:24 AM
clang-tools-extra/clangd/SemanticHighlighting.cpp
228

nit: addToken(Loc, VD->isLocalVarDecl() ? HighlightingKind::LocalVariable : HighlightingKind::Variable)

hokein accepted this revision.Aug 26 2019, 1:26 AM
hokein added inline comments.
clang-tools-extra/clangd/SemanticHighlighting.h
39

+1, related symbols should be grouped together.

This revision is now accepted and ready to land.Aug 26 2019, 1:26 AM
This revision was automatically updated to reflect the committed changes.