Cleanup and modernize Optional.h#64020
Cleanup and modernize Optional.h#64020heitorschueroff wants to merge 3 commits intogh/heitorschueroff/17/basefrom
Conversation
[ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit dd766bb (more details on the Dr. CI page):
🕵️ 8 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages
|
[ghstack-poisoned]
[ghstack-poisoned]
| constexpr storage() noexcept : uninitialized_() {} | ||
|
|
||
| explicit constexpr storage(ArrayRefT& v) : value_(v) {} | ||
| explicit constexpr storage(const ArrayRefT& v) : value_(v) {} |
|
These seems OK I guess, deferring to @swolchok |
|
Hi @heitorschueroff! Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours needs attention. You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
swolchok
left a comment
There was a problem hiding this comment.
seems fine; I'm a little bit reluctant to make a bunch of style changes to this code because it makes merging any upstream fixes that much harder, but perhaps we've passed that point anyway.
| ArrayRefT value_; | ||
| const T* p{nullptr}; | ||
| size_type sz{1}; | ||
| } uninitialized_; |
There was a problem hiding this comment.
it's silly, but I think removing the braces here will cause clang-tidy to complain. If it doesn't, great!
Do the braces vs = signs on the preceding two lines make a difference or is it just a style thing?
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Stack from ghstack: