[all-commits] [llvm/llvm-project] 22a34e: [clangd] Support configuration of inlay hints.

Sam McCall via All-commits all-commits at lists.llvm.org
Mon Jan 10 01:36:43 PST 2022


  Branch: refs/heads/maain
  Home:   https://github.com/llvm/llvm-project
  Commit: 22a34e01066004c9bd8d7ad418df90b8fbcb3749
      https://github.com/llvm/llvm-project/commit/22a34e01066004c9bd8d7ad418df90b8fbcb3749
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2022-01-10 (Mon, 10 Jan 2022)

  Changed paths:
    M clang-tools-extra/clangd/Config.h
    M clang-tools-extra/clangd/ConfigCompile.cpp
    M clang-tools-extra/clangd/ConfigFragment.h
    M clang-tools-extra/clangd/ConfigYAML.cpp
    M clang-tools-extra/clangd/InlayHints.cpp
    M clang-tools-extra/clangd/unittests/ConfigYAMLTests.cpp
    M clang-tools-extra/clangd/unittests/InlayHintTests.cpp

  Log Message:
  -----------
  [clangd] Support configuration of inlay hints.

The idea is that the feature will always be advertised at the LSP level, but
depending on config we'll return partial or no responses.

We try to avoid doing the analysis for hints we're not going to return.

Examples of syntax:
```
InlayHints:
  Enabled: No
---
InlayHints:
  ParameterNames: No
---
InlayHints:
  ParameterNames: Yes
  DeducedTypes: Yes
```

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




More information about the All-commits mailing list