[Mlir-commits] [mlir] [mlir] Add `[[lifetimebound]]` to Range classes. (PR #123091)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Jan 15 10:13:25 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 18650480cb2ea46c9e8236c83593216af80fa25c 97cc3187688b11d40cc636e963d96fb0907f9d7e --extensions h -- mlir/include/mlir/IR/BlockSupport.h mlir/include/mlir/IR/Region.h mlir/include/mlir/IR/TypeRange.h mlir/include/mlir/IR/ValueRange.h
``````````

</details>

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

``````````diff
diff --git a/mlir/include/mlir/IR/TypeRange.h b/mlir/include/mlir/IR/TypeRange.h
index edecd441c1..6f4eb54d03 100644
--- a/mlir/include/mlir/IR/TypeRange.h
+++ b/mlir/include/mlir/IR/TypeRange.h
@@ -50,7 +50,8 @@ public:
   template <typename Arg, typename = std::enable_if_t<
                               std::is_constructible_v<ArrayRef<Type>, Arg> &&
                               !std::is_constructible_v<Type, Arg>>>
-  TypeRange(Arg &&arg LLVM_LIFETIME_BOUND) : TypeRange(ArrayRef<Type>(std::forward<Arg>(arg))) {}
+  TypeRange(Arg &&arg LLVM_LIFETIME_BOUND)
+      : TypeRange(ArrayRef<Type>(std::forward<Arg>(arg))) {}
   TypeRange(std::initializer_list<Type> types LLVM_LIFETIME_BOUND)
       : TypeRange(ArrayRef<Type>(types)) {}
 

``````````

</details>


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


More information about the Mlir-commits mailing list