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.

贡献者指南