-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src: fix modernize-return-braced-init-list #26023
Conversation
@addaleax Can you review this, thanks. |
@gengjiawen I’m not sure I see the harm in being explicit about return types… |
Give another thought, I agree with you. |
But from another way, this is less verbose in most cases ... Any opinion ? |
Personally I prefer being tarse, but the concensus seems to be with being explicit #23028 |
Reopen it to give this more discussion. |
i've literally never seen this before, and i suspect the same is true of others. i feel this would be more confusing than anything else. |
I can't really see the benefit this brings, aside from that it makes the return statements more succinct and potentially keeps them separate from return type changes, but then in the case of |
Perhaps another time. |
Fix https://clang.llvm.org/extra/clang-tidy/checks/modernize-return-braced-init-list.html.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes