[all-commits] [llvm/llvm-project] 570984: [clangd] Fix highlighting for implicit ObjC proper...
David Goldman via All-commits
all-commits at lists.llvm.org
Wed Jun 30 09:32:37 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 570984204f24c326699dedcc05793b77b013f068
https://github.com/llvm/llvm-project/commit/570984204f24c326699dedcc05793b77b013f068
Author: David Goldman <davg at google.com>
Date: 2021-06-30 (Wed, 30 Jun 2021)
Changed paths:
M clang-tools-extra/clangd/SemanticHighlighting.cpp
M clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
Log Message:
-----------
[clangd] Fix highlighting for implicit ObjC property refs
Objective-C lets you use the `self.prop` syntax as sugar for both
`[self prop]` and `[self setProp:]`, but clangd previously did not
provide a semantic token for `prop`.
Now, we provide a semantic token, treating it like a normal property
except it's backed by a `ObjCMethodDecl` instead of a
`ObjCPropertyDecl`.
Differential Revision: https://reviews.llvm.org/D104117
More information about the All-commits
mailing list