[llvm] [RISCV][NFC] Adopt DiagnosticString interface (PR #126290)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 11:20:07 PST 2025
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 50cdf6cbc5035345507bb4d23fcb0292272754eb 70498da996ac9266c1d810c00aa6cfb25a3d4ee0 --extensions cpp -- llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
index a2e9237b0e..262ac5da5a 100644
--- a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+++ b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
@@ -1623,7 +1623,7 @@ bool RISCVAsmParser::matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
}
}
- if (const char* MatchDiag = getMatchKindDiag((RISCVMatchResultTy)Result)) {
+ if (const char *MatchDiag = getMatchKindDiag((RISCVMatchResultTy)Result)) {
SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
return Error(ErrorLoc, MatchDiag);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/126290
More information about the llvm-commits
mailing list