[clang] [compiler-rt] [libc] [libclc] [libcxxabi] [lld] [lldb] [llvm] [mlir] llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp:3804: lacking () for c… (PR #90391)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 28 04:16:49 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 738c135ee09de66a26805530d314c2f28d1eca02 f860432b9434c81ab55d5eded9c976edc58c3fab -- clang/lib/Basic/Targets/AMDGPU.cpp compiler-rt/lib/xray/xray_utils.h libc/src/__support/FPUtil/aarch64/FEnvImpl.h libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h libc/src/__support/FPUtil/arm/FEnvImpl.h libc/src/__support/FPUtil/riscv/FEnvImpl.h libc/src/__support/FPUtil/x86_64/FEnvImpl.h libclc/generic/lib/math/log_base.h libcxxabi/src/cxa_personality.cpp lld/ELF/LinkerScript.cpp lldb/tools/debugserver/source/MacOSX/MachException.cpp llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp llvm/lib/Target/AVR/AVRAsmPrinter.cpp llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp mlir/lib/Dialect/Tosa/Transforms/TosaDecomposeTransposeConv.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxxabi/src/cxa_personality.cpp b/libcxxabi/src/cxa_personality.cpp
index 8f7914a8c6..d95d781319 100644
--- a/libcxxabi/src/cxa_personality.cpp
+++ b/libcxxabi/src/cxa_personality.cpp
@@ -717,9 +717,7 @@ static void scan_eh_tab(scan_results &results, _Unwind_Action actions,
if (actionEntry == 0)
{
// Found a cleanup
- results.reason = (actions & _UA_SEARCH_PHASE)
- ? _URC_CONTINUE_UNWIND
- : _URC_HANDLER_FOUND;
+ results.reason = (actions & _UA_SEARCH_PHASE) ? _URC_CONTINUE_UNWIND : _URC_HANDLER_FOUND;
return;
}
// Convert 1-based byte offset into
diff --git a/llvm/lib/Target/AVR/AVRAsmPrinter.cpp b/llvm/lib/Target/AVR/AVRAsmPrinter.cpp
index 0c7df65a42..aaec545fc1 100644
--- a/llvm/lib/Target/AVR/AVRAsmPrinter.cpp
+++ b/llvm/lib/Target/AVR/AVRAsmPrinter.cpp
@@ -134,8 +134,8 @@ bool AVRAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum,
Reg = MI->getOperand(OpNum + RegIdx).getReg();
if (BytesPerReg == 2) {
- Reg = TRI.getSubReg(Reg,
- (ByteNumber % BytesPerReg) ? AVR::sub_hi : AVR::sub_lo);
+ Reg = TRI.getSubReg(Reg, (ByteNumber % BytesPerReg) ? AVR::sub_hi
+ : AVR::sub_lo);
}
O << AVRInstPrinter::getPrettyRegisterName(Reg, MRI);
``````````
</details>
https://github.com/llvm/llvm-project/pull/90391
More information about the cfe-commits
mailing list