Closed piotrrak closed 2 years ago
These all seem good to me. Does managarm compile with these changes applied?
Yea, 0001 branches have no dependencies.
does this align with previous commit message discipline?
same for the other prs
Also make sure mlibc compiles with these changes.
@ArsenArsen Do you mean the branch name? That is fine IMHO.
Regarding the changes: they all look fine to me. For quantifying the optional::value()
function: when does this make a difference? This only really affects code that directly passes .value() into a function taking a rvalue reference, right? (Since std::move(foo.value())
already gave a rvalue reference before.)
no, I mean the commit message, elsewhere it's component: description
, also [[nodiscard]] for lock objects
isn't very descriptive
Regarding the changes: they all look fine to me. For quantifying the
optional::value()
function: when does this make a difference? This only really affects code that directly passes .value() into a function taking a rvalue reference, right? (Sincestd::move(foo.value())
already gave a rvalue reference before.)
One common case would be:
optional<T> foo();
T t1 = foo().value();
// You sure could without it:
T t2 = std::move(foo().value());
Makes sense. LGTM.
Will resubmit split per modules with more explanatory and consistent commit messages tonight/tomorrow.
Also make sure mlibc compiles with these changes.
mlibc also builds with those changes
Please let me know if you want any of those.