Unreachable code should be self-documented as unreachable.
Found by the Rotten Green Tests project.
Differential D98518
[RGT] RPCUtilsTest, replace un-executed EXPECT with unreachable Authored by probinson on Mar 12 2021, 8:49 AM.
Details Unreachable code should be self-documented as unreachable. Found by the Rotten Green Tests project.
Diff Detail Event TimelineComment Actions LGTM. Thanks Paul! (If you don't have commit access already just let me know and I can land this on your behalf) |
clang-format: please reformat the code
- Server.addHandler<DummyRPCAPI::VoidBool>( - [](bool B) { - llvm_unreachable("Server void(bool) received unexpected result"); - }); + Server.addHandler<DummyRPCAPI::VoidBool>([](bool B) { + llvm_unreachable("Server void(bool) received unexpected result"); + });