diff options
author | Sam McCall <sam.mccall@gmail.com> | 2021-02-27 22:08:07 +0100 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2021-03-03 20:16:08 +0100 |
commit | 7d2fba8ddb90cf018d9cfc852b68e4584b15678e (patch) | |
tree | 758d049b1f40dafc804ca1882f98f7536973da7c /clang/lib/CodeGen/CoverageMappingGen.cpp | |
parent | 87e854a578531dadebda3c5f2a380426a61f26be (diff) | |
download | llvm-7d2fba8ddb90cf018d9cfc852b68e4584b15678e.zip llvm-7d2fba8ddb90cf018d9cfc852b68e4584b15678e.tar.gz llvm-7d2fba8ddb90cf018d9cfc852b68e4584b15678e.tar.bz2 |
[clangd] ObjC fixes for semantic highlighting and xref highlights
- highlight references to protocols in class/protocol/extension decls
- support multi-token selector highlights in semantic + xref highlights
(method calls and declarations only)
- In `@interface I(C)`, I now references the interface and C the category
- highlight uses of interfaces as types
- added semantic highlightings of protocol names (as "interface") and
category names (as "namespace").
These are both standard kinds, maybe "extension" will be standardized...
- highlight `auto` as "class" when it resolves to an ObjC pointer
- don't highlight `self` as a variable even though the AST models it as one
Not fixed: uses of protocols in type names (needs some refactoring of
unrelated code first)
Differential Revision: https://reviews.llvm.org/D97617
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
0 files changed, 0 insertions, 0 deletions