-
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.
Remove
exit: return
idiom from some directories (#7768)
#### Problem The `Exit` group of error-handling macros inhibit scoping, and are unnecessary when there is no cleanup at the `exit:` label. Part of #7721 _goto exit pattern should be replaced with RAII in C++_ #### Change overview Remove simple `exit: return` from * `src/app` * `src/controller` * `src/crypto` * `src/inet` * `src/lib` * `src/protocols` * `src/setup_payload` * `src/transport` replacing `Exit` macros with corresponding `Return` macros. Note that this does not change any `exit:` blocks with actual cleanup. #### Testing No change to functionality; existing tests should catch regressions.
- Loading branch information
1 parent
3e54c8d
commit 9ee0471
Showing
56 changed files
with
1,334 additions
and
2,116 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
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
Oops, something went wrong.