[llvm] [SDPatternMatch] Do not use std::forward and rvalue references (NFC) (PR #93806)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 04:22: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 b2bd024384b484647da9fd9863bf6f77b5731949 0a43d07c8edd34eb4b339dfe6e44f9c2728543b2 -- llvm/include/llvm/CodeGen/SDPatternMatch.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CodeGen/SDPatternMatch.h b/llvm/include/llvm/CodeGen/SDPatternMatch.h
index f1e3560fa0..071a27a795 100644
--- a/llvm/include/llvm/CodeGen/SDPatternMatch.h
+++ b/llvm/include/llvm/CodeGen/SDPatternMatch.h
@@ -330,9 +330,7 @@ template <typename... Preds> struct And {
template <typename Pred, typename... Preds>
struct And<Pred, Preds...> : And<Preds...> {
Pred P;
- And(const Pred &p, const Preds &...preds)
- : And<Preds...>(preds...), P(p) {
- }
+ And(const Pred &p, const Preds &...preds) : And<Preds...>(preds...), P(p) {}
template <typename MatchContext>
bool match(const MatchContext &Ctx, SDValue N) {
@@ -349,8 +347,7 @@ template <typename... Preds> struct Or {
template <typename Pred, typename... Preds>
struct Or<Pred, Preds...> : Or<Preds...> {
Pred P;
- Or(const Pred &p, const Preds &...preds)
- : Or<Preds...>(preds...), P(p) {}
+ Or(const Pred &p, const Preds &...preds) : Or<Preds...>(preds...), P(p) {}
template <typename MatchContext>
bool match(const MatchContext &Ctx, SDValue N) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/93806
More information about the llvm-commits
mailing list