diff options
author | Mythreya <git@mythreya.dev> | 2025-04-22 23:36:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-23 02:36:48 -0400 |
commit | 665914fea1433409015a87fef2837218bcd21460 (patch) | |
tree | d87d562445d46a1773f2772352e4fa3f7698bab6 /llvm/lib/CodeGen/SelectOptimize.cpp | |
parent | 30c47147262523663892836fee42e02f8f9366f5 (diff) | |
download | llvm-665914fea1433409015a87fef2837218bcd21460.zip llvm-665914fea1433409015a87fef2837218bcd21460.tar.gz llvm-665914fea1433409015a87fef2837218bcd21460.tar.bz2 |
[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@outlook.com>
Diffstat (limited to 'llvm/lib/CodeGen/SelectOptimize.cpp')
0 files changed, 0 insertions, 0 deletions