[clang-tools-extra] [clangd] Improve `BlockEnd` inlayhint presentation (PR #136106)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 21 00:19:45 PDT 2025


================
@@ -22,10 +22,16 @@ namespace clang {
 namespace clangd {
 class ParsedAST;
 
+struct InlayHintOptions {
+  // Minimum lines for BlockEnd inlay-hints to be shown
+  int HintMinLineLimit{2};
----------------
MythreyaK wrote:

> What we discussed in the original issue was that the default should remain 2 for tests, so that we don't have to change a lot of tests / artificially make the blocks long in test code, but that the limit used in production should be increased to 10.

Yep I definitely mixed that up, sorry! Should be fixed now. 

https://github.com/llvm/llvm-project/pull/136106


More information about the cfe-commits mailing list