[clang-tools-extra] [clang-tidy] Improve readability-enum-initial-value diagnostic message (PR #176485)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 16 17:53:19 PST 2026


zwuis wrote:

It would be better to emit diagnostics with `DiagnosticIDs::Note` to tell which and where enumerators are not initialized. Concatenating makes the message too long.

An optimization: For contiguous uninitialized enumerators, emit diagnostic messages for only the first and the last enumerator.

https://github.com/llvm/llvm-project/pull/176485


More information about the cfe-commits mailing list