[libcxx-commits] [libcxx] [libc++] Fix make_from_tuple for reference types (PR #220966)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 3 08:15:22 PDT 2026
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 origin/main HEAD --extensions ,cpp -- libcxx/include/tuple libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp
index b9a15b872..e86dff939 100644
--- a/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp
+++ b/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp
@@ -255,10 +255,10 @@ int main(int, char**)
test_perfect_forwarding();
test_noexcept();
- { // Test that constructing a T& returns the same object
- int i;
- assert(&std::make_from_tuple<const int&>(std::tuple<int&>(i)) == &i);
- }
+ { // Test that constructing a T& returns the same object
+ int i;
+ assert(&std::make_from_tuple<const int&>(std::tuple<int&>(i)) == &i);
+ }
return 0;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/220966
More information about the libcxx-commits
mailing list