-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use std::optional for chip::Nullable (#33080)
* make nullable depend on std::optional instead of chip::optional * Fix equality operator * Fix inequality operator as well * Fix test: previous code was enforcing chip::optional behavior on in-place construction * Restyle * Fix some compile errors ... std::optional now detects unused variables * Restyle * Remove unused variable * Restyle * Review updates * Review fix * Typo fixes * Ugly forward of Value and ValueOr .... however at least hopefully it is complete * Do not expose value/value_or at this time and keep Value/ValueOr as the public API for nullable * Fix copy and paste typo * Make more changes to make things compile and work like the old nullable * Use value again instead of operator** ... I was looking at the wrong compiler errors * Undo unrelated change * Make clang-tidy be abel to compile ... apparently it really does not like using has_value in equality operators * Restyle * Another update to make clang-tidy happy for the other equality operator * Update src/app/data-model/Nullable.h Co-authored-by: Boris Zbarsky <[email protected]> * Undo odd whitespace change --------- Co-authored-by: Andrei Litvin <[email protected]> Co-authored-by: Boris Zbarsky <[email protected]>
- Loading branch information
1 parent
9eb2e29
commit dfe64ee
Showing
3 changed files
with
49 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters