[Lldb-commits] [lldb] [lldb] Improve maintainability and readability for ValueObject methods (PR #75865)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 19 10:20:07 PST 2023


================
@@ -1700,13 +1706,13 @@ ValueObjectSP ValueObject::GetSyntheticChildAtOffset(
     return synthetic_child_sp;
 
   if (!can_create)
-    return {};
+    return ValueObjectSP();
----------------
JDevlieghere wrote:

I'm possibly biased as the author of the [modernize-return-braced-init-list clang tidy check](https://clang.llvm.org/extra/clang-tidy/checks/modernize/return-braced-init-list.html) but I'm curious why you think this is more readable? 

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


More information about the lldb-commits mailing list