[Lldb-commits] [PATCH] D116982: Fix clang-tidy bugprone-argument-comment that was mixed up
Shafik Yaghmour via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 10 17:11:47 PST 2022
shafik created this revision.
shafik added reviewers: wallace, JDevlieghere.
shafik requested review of this revision.
Several of the comments were annotating the wrong argument.
I caught this while reviewing this clean-up: https://github.com/llvm/llvm-project/commit/8afcfbfb8fc1e53023ffac9d9bdc424248d6d2ff
which was changing booleans to use `true` and `false` and in the this case the comment and the type looked mismatched.
https://reviews.llvm.org/D116982
Files:
lldb/source/Target/TraceInstructionDumper.cpp
Index: lldb/source/Target/TraceInstructionDumper.cpp
===================================================================
--- lldb/source/Target/TraceInstructionDumper.cpp
+++ lldb/source/Target/TraceInstructionDumper.cpp
@@ -148,9 +148,8 @@
if (!insn.instruction)
return;
s.Printf(" ");
- insn.instruction->Dump(&s, /*show_address=*/false, /*show_bytes=*/false,
- /*max_opcode_byte_size=*/false, &insn.exe_ctx,
- &insn.sc,
+ insn.instruction->Dump(&s, /*max_opcode_byte_size=*/0, /*show_address=*/false,
+ /*show_bytes=*/false, &insn.exe_ctx, &insn.sc,
/*prev_sym_ctx=*/nullptr,
/*disassembly_addr_format=*/nullptr,
/*max_address_text_size=*/0);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116982.398783.patch
Type: text/x-patch
Size: 812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220111/ae8935ec/attachment.bin>
More information about the lldb-commits
mailing list