[all-commits] [llvm/llvm-project] 665914: [clangd] Improve `BlockEnd` inlayhint presentation...

Mythreya via All-commits all-commits at lists.llvm.org
Tue Apr 22 23:37:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 665914fea1433409015a87fef2837218bcd21460
      https://github.com/llvm/llvm-project/commit/665914fea1433409015a87fef2837218bcd21460
  Author: Mythreya <git at mythreya.dev>
  Date:   2025-04-23 (Wed, 23 Apr 2025)

  Changed paths:
    M clang-tools-extra/clangd/InlayHints.cpp
    M clang-tools-extra/clangd/InlayHints.h
    M clang-tools-extra/clangd/unittests/InlayHintTests.cpp

  Log Message:
  -----------
  [clangd] Improve `BlockEnd` inlayhint presentation (#136106)

 * Only show for blocks 10 lines or taller (including braces)
 * Add parens for function call: "// if foo" -> "// if foo()" or "// if foo(...)"
 * Print literal nullptr
 * Escaping for abbreviated strings

Fixes https://github.com/clangd/clangd/issues/1807.

Based on the original PR at https://github.com/llvm/llvm-project/pull/72345.

Co-authored-by: daiyousei-qz <qyzheng2 at outlook.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list