[Lldb-commits] [lldb] [lldb] Improved formatting of 'register read' command. (PR #188049)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 24 07:59:05 PDT 2026


================
@@ -147,6 +149,39 @@ class CommandObjectRegisterRead : public CommandObjectParsed {
   }
 
 protected:
+  uint32_t ComputeMatchingAlignment(RegisterContext *reg_ctx,
----------------
JDevlieghere wrote:

I'd make this a static function rather than a member. Right now it's somewhat unclear what should be passed as an argument and what's implicitly used from the class' members. 

I would also suggest calling this `ComputeLongestRegisterName` to better describe what this does rather than what it's used for.

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


More information about the lldb-commits mailing list