[clang-tools-extra] [clangd] Improve `BlockEnd` inlayhint presentation (PR #136106)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 21 00:20:27 PDT 2025
================
@@ -2305,7 +2335,45 @@ TEST(BlockEndHints, PointerToMemberFunction) {
$ptrmem[[}]]
} // suppress
)cpp",
- ExpectedHint{" // if", "ptrmem"});
+ ExpectedHint{" // if ()", "ptrmem"});
+}
+
+TEST(BlockEndHints, MinLineLimit) {
+ assertBlockEndHintsWithOpts(
+ R"cpp(
+ namespace ns {
+ int Var;
+ int func1();
+ int func2(int, int);
+ struct S {
+ int Field;
+ int method1() const;
+ int method2(int, int) const;
+ $struct[[}]];
----------------
MythreyaK wrote:
Very helpful explanation, thank you for the clarification!
Will push an amended commit soon.
https://github.com/llvm/llvm-project/pull/136106
More information about the cfe-commits
mailing list