[Lldb-commits] [lldb] [lldb] Bring more diagnostics in compliance with our coding standards (PR #190410)

via lldb-commits lldb-commits at lists.llvm.org
Sat Apr 4 02:31:57 PDT 2026


================
@@ -70,8 +71,8 @@ TypeFilterImpl::FrontEnd::GetIndexOfChildWithName(ConstString name) {
       }
     }
   }
-  return llvm::createStringError("Type has no child named '%s'",
-                                 name.AsCString());
+  return llvm::createStringErrorV("type has no child named '{0}'",
+                                  name.GetStringRef());
----------------
Nerixyz wrote:

```suggestion
  return llvm::createStringErrorV("type has no child named '{0}'",
                                  name);
```

You should be able to use `ConstString` with `formatv`. There are a few similar cases in this PR.

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


More information about the lldb-commits mailing list