[PATCH] D42895: [libclang] Add `CXSymbolRole role` to CXIdxEntityRefInfo

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 4 12:16:54 PST 2018


MaskRay created this revision.
Herald added a subscriber: cfe-commits.

CXIdxEntityRefInfo contains the member `CXIdxEntityRefKind kind;` to
differentiate implicit and direct calls. However, there are more roles
defined in SymbolRole. Among them, `Read/Write` are probably the most
useful ones as they can be used to differentiate Read/Write occurrences
of a symbol for document highlight in a text document.

See `export namespace DocumentHighlightKind`
on https://microsoft.github.io/language-server-protocol/specification


Repository:
  rC Clang

https://reviews.llvm.org/D42895

Files:
  include/clang-c/Index.h
  tools/libclang/CXIndexDataConsumer.cpp
  tools/libclang/CXIndexDataConsumer.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42895.132779.patch
Type: text/x-patch
Size: 5907 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180204/19f99e1b/attachment.bin>


More information about the cfe-commits mailing list