envoyproxy/envoy

Clean up PANIC macros

Open

#19,229 建立於 2021年12月9日

在 GitHub 查看
 (12 留言) (0 反應) (0 負責人)C++ (5,373 fork)batch import
beginnerenhancementhelp wantedtech debt

倉庫指標

Star
 (27,997 star)
PR 合併指標
 (平均合併 8天) (30 天內合併 378 個 PR)

描述

https://github.com/envoyproxy/envoy/pull/19204 replaced NOT_REACHED_GCOVR_EXCL_LINE macros with more clear PANIC_DUE_TO_CORRUPT_ENUM macros.

While more clear, the panics are still suboptimal becasue doing break; instead of return; results in production crashes. These should be cleaned up and replaced with sensible defaults on a case by case basis.

貢獻者指南