[llvm] [AsmParser][NFCI] Restructure DiagnosticPredicate (PR #126653)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 12 11:04:11 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 55015e150b35f69431ce1f906e22a598d5b2f000 bca2a80e872d623dda313ac02c44d338d81c0503 --extensions cpp,h -- llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index 92394569e5..11fb746042 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -814,7 +814,9 @@ public:
     return (Val >= 0 && Val < 64);
   }
 
-  template <int Width> bool isSImm() const { return bool(isSImmScaled<Width, 1>()); }
+  template <int Width> bool isSImm() const {
+    return bool(isSImmScaled<Width, 1>());
+  }
 
   template <int Bits, int Scale> DiagnosticPredicate isSImmScaled() const {
     return isImmScaled<Bits, Scale>(true);

``````````

</details>


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


More information about the llvm-commits mailing list