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

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 20 23:04:45 PDT 2025


================
@@ -147,6 +149,9 @@ std::string summarizeExpr(const Expr *E) {
     }
 
     // Literals are just printed
+    std::string VisitCXXNullPtrLiteralExpr(const CXXNullPtrLiteralExpr *E) {
+      return "nullptr";
----------------
HighCommander4 wrote:

Could you add a small test case (or extend an existing one) that exercises this change? e.g. something like:

```c++
void foo(char *s) {
  if (s != nullptr) {
  }  // if s != nullptr
}

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


More information about the cfe-commits mailing list