-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libc++] Make a few test helper constructors explicit #118975
Conversation
CC @winner245 |
@llvm/pr-subscribers-libcxx Author: Louis Dionne (ldionne) ChangesFull diff: https://github.com/llvm/llvm-project/pull/118975.diff 1 Files Affected:
diff --git a/libcxx/test/std/containers/sequences/vector/common.h b/libcxx/test/std/containers/sequences/vector/common.h
index cd57b6cc3e7235..ff8147ef6b838b 100644
--- a/libcxx/test/std/containers/sequences/vector/common.h
+++ b/libcxx/test/std/containers/sequences/vector/common.h
@@ -20,7 +20,7 @@ struct throwing_t {
int* throw_after_n_ = nullptr;
throwing_t() { throw 0; }
- throwing_t(int& throw_after_n) : throw_after_n_(&throw_after_n) {
+ explicit throwing_t(int& throw_after_n) : throw_after_n_(&throw_after_n) {
if (throw_after_n == 0)
throw 0;
--throw_after_n;
@@ -95,7 +95,7 @@ struct throwing_iterator {
int i_;
T v_;
- throwing_iterator(int i = 0, const T& v = T()) : i_(i), v_(v) {}
+ explicit throwing_iterator(int i = 0, const T& v = T()) : i_(i), v_(v) {}
reference operator*() {
if (i_ == 1)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM upon CI green.
Is the lldb test in stage3 (bootstrapping-build) broken? The failed tests seem completely unrelated to this PR (they also failed in my PR): Failed Tests (15): |
Looks like this was broken recently in the bootstrapping build. This is probably caused by a clang change. I'll investigate separately. In the meantime I think we can consider the CI to be green. |
No description provided.