envoyproxy/envoy

Clean up PANIC macros

Open

#19.229 aberto em 9 de dez. de 2021

Ver no GitHub
 (12 comments) (0 reactions) (0 assignees)C++ (5.373 forks)batch import
beginnerenhancementhelp wantedtech debt

Métricas do repositório

Stars
 (27.997 stars)
Métricas de merge de PR
 (Mesclagem média 8d) (378 fundiu PRs em 30d)

Description

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.

Guia do colaborador