[all-commits] [llvm/llvm-project] 3137ca: [clangd] Support for standard inlayHint protocol

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Tue May 10 09:59:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3137ca80b9ef99359a4adf77512925c2edc461b9
      https://github.com/llvm/llvm-project/commit/3137ca80b9ef99359a4adf77512925c2edc461b9
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2022-05-10 (Tue, 10 May 2022)

  Changed paths:
    M clang-tools-extra/clangd/ClangdLSPServer.cpp
    M clang-tools-extra/clangd/ClangdLSPServer.h
    M clang-tools-extra/clangd/InlayHints.cpp
    M clang-tools-extra/clangd/Protocol.cpp
    M clang-tools-extra/clangd/Protocol.h
    M clang-tools-extra/clangd/test/initialize-params.test
    M clang-tools-extra/clangd/test/inlayHints.test
    M clang-tools-extra/clangd/unittests/InlayHintTests.cpp

  Log Message:
  -----------
  [clangd] Support for standard inlayHint protocol

- Make clangd's internal representation more aligned with the standard.
  We keep range and extra inlayhint kinds around, but don't serialize
  them on standard version.
- Have custom serialization for extension (ugly, but going to go away).
- Support both versions until clangd-17.
- Don't advertise extension if client has support for standard
  implementation.
- Log a warning at startup about extension being deprecated, if client
  doesn't have support.

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




More information about the All-commits mailing list