hanchenye-llvm-project/clang/tools/libclang
Fangrui Song 31b97194e6 [libclang] Add `CXSymbolRole role` to CXIdxEntityRefInfo
Summary:
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

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D42895

llvm-svn: 324914
2018-02-12 17:42:09 +00:00
..
ARCMigrate.cpp [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) 2017-10-18 05:21:17 +00:00
BuildSystem.cpp
CIndex.cpp [libclang] Add PrintingPolicy for pretty printing declarations 2018-01-16 10:19:56 +00:00
CIndexCXX.cpp
CIndexCodeCompletion.cpp [CodeComplete] Add an option to omit results from the preamble. 2018-01-12 14:51:47 +00:00
CIndexDiagnostic.cpp
CIndexDiagnostic.h
CIndexHigh.cpp
CIndexInclusionStack.cpp
CIndexUSRs.cpp
CIndexer.cpp [libclang] Record code-completion invocations to a temporary file when 2017-12-07 20:37:50 +00:00
CIndexer.h [libclang] Record code-completion invocations to a temporary file when 2017-12-07 20:37:50 +00:00
CLog.h
CMakeLists.txt [clang] Use add_llvm_install_targets 2017-11-30 22:35:02 +00:00
CXComment.cpp
CXComment.h
CXCompilationDatabase.cpp
CXCursor.cpp
CXCursor.h
CXIndexDataConsumer.cpp [libclang] Add `CXSymbolRole role` to CXIdxEntityRefInfo 2018-02-12 17:42:09 +00:00
CXIndexDataConsumer.h [libclang] Add `CXSymbolRole role` to CXIdxEntityRefInfo 2018-02-12 17:42:09 +00:00
CXLoadedDiagnostic.cpp
CXLoadedDiagnostic.h
CXSourceLocation.cpp Reverting r316278 due to failing build bots. 2017-10-21 21:52:48 +00:00
CXSourceLocation.h
CXStoredDiagnostic.cpp
CXString.cpp
CXString.h
CXTranslationUnit.h [libclang] Record code-completion invocations to a temporary file when 2017-12-07 20:37:50 +00:00
CXType.cpp Convert clang::LangAS to a strongly typed enum 2017-10-15 18:48:14 +00:00
CXType.h
CursorVisitor.h
Index_Internal.h
Indexing.cpp [libclang] Allow crash recovery with LIBCLANG_NOTHREADS 2017-11-14 09:34:39 +00:00
libclang.exports [libclang] Add PrintingPolicy for pretty printing declarations 2018-01-16 10:19:56 +00:00