Skip to content

Conversation

Michael137
Copy link

This patch adds a formatter for std::ranges::ref_view<T>.
It simply holds a T*, so all this formatter does is dereference
this pointer and format it as T would be.

Testing

  • Added API tests

Differential Revision: https://reviews.llvm.org/D138558

(cherry picked from commit 77b2205)

@Michael137 Michael137 requested a review from adrian-prantl May 16, 2023 11:52
@Michael137
Copy link
Author

@swift-ci test

@Michael137 Michael137 force-pushed the bugfix/ref-view-formatter-lldb-to-5.9 branch from c092113 to b6a82c6 Compare May 16, 2023 11:53
@Michael137
Copy link
Author

@swift-ci test

@Michael137
Copy link
Author

@swift-ci Please test Windows platform

@Michael137 Michael137 force-pushed the bugfix/ref-view-formatter-lldb-to-5.9 branch from b6a82c6 to 5e8cf3b Compare May 16, 2023 18:07
@Michael137
Copy link
Author

@swift-ci test

@Michael137 Michael137 force-pushed the bugfix/ref-view-formatter-lldb-to-5.9 branch from 5e8cf3b to 0bf28e8 Compare May 16, 2023 23:27
@Michael137
Copy link
Author

@swift-ci test

This patch adds a formatter for `std::ranges::ref_view<T>`.
It simply holds a `T*`, so all this formatter does is dereference
this pointer and format it as `T` would be.

**Testing**

* Added API tests

Differential Revision: https://reviews.llvm.org/D138558

(cherry picked from commit 77b2205)
@Michael137 Michael137 force-pushed the bugfix/ref-view-formatter-lldb-to-5.9 branch from 0bf28e8 to 2ed2d24 Compare May 17, 2023 12:51
Since the LLDB testing infrastructure for swift.ci doesn't
currently allow running API tests against newly built libcxx,
there is no way for us to guarantee that the necessary `ranges`
headers will be available. So disable the test until the infra
is fixed.
@Michael137
Copy link
Author

@swift-ci test

@Michael137
Copy link
Author

@swift-ci Please test Windows platform

@fredriss fredriss merged commit f3e0142 into swiftlang:swift/release/5.9 May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants