[clang] [clang][Sema] Add -Wswitch-default warning option (PR #73077)

dong jianqiang via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 21 22:19:00 PST 2023


dongjianqiang2 wrote:

> There is one clang-tidy check (bugprone-switch-missing-default-case) also for this feature.

Thank you for your reply. It may be a more convenient and straightforward way if can be identified during compile time. 
On the other hand, it it more compatibile with GCC's hehavior. : )

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


More information about the cfe-commits mailing list