src: fix modernize-return-braced-init-list#26023
src: fix modernize-return-braced-init-list#26023gengjiawen wants to merge 1 commit intonodejs:masterfrom
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