Details
Details
- Reviewers
ldionne - Group Reviewers
Restricted Project - Commits
- rGa77e91801604: libcxx: use early returns
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This looks correct, but I'm not sure what we gain from making this change?
libcxx/src/filesystem/operations.cpp | ||
---|---|---|
1065 | I found it easier to understand when we unconditionally returned false at the end of the function TBH. Now, I have to go and figure out what ErrorHandler<bool>::report() returns when I'm just glancing at the function. |
libcxx/src/filesystem/operations.cpp | ||
---|---|---|
1065 | But you already have to know that for the two uses before in this function. Now it is at least consistent. |
Comment Actions
LGTM. Please wait for CI to finish and ship it.
CI is successful when this is green:
libcxx/src/filesystem/operations.cpp | ||
---|---|---|
1065 | Agreed. |
I found it easier to understand when we unconditionally returned false at the end of the function TBH. Now, I have to go and figure out what ErrorHandler<bool>::report() returns when I'm just glancing at the function.