[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,
+ const RegisterSet *const reg_set,
+ bool primitive_only) {
+ bool use_primary_name =
+ !static_cast<bool>(m_command_options.alternate_name);
+ const size_t num_registers = reg_set->num_registers;
+ uint32_t reg_name_align_at = 0;
+
+ auto getNameSize = [&](auto reg_info) {
+ auto raw = use_primary_name ? reg_info->name : reg_info->alt_name;
----------------
JDevlieghere wrote:
Don't use `auto` unless the type is obvious from the RHS: https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable
https://github.com/llvm/llvm-project/pull/188049
More information about the lldb-commits
mailing list