[PATCH] D131704: [Clang] Tighten restrictions on enum out of range diagnostic

Amy Huang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 11 16:09:53 PDT 2022


akhuang added a comment.

We're seeing this warning in code with global constants, e.g.

  const Enum x = static_cast<Enum>(-1);

is this intended?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131704/new/

https://reviews.llvm.org/D131704



More information about the cfe-commits mailing list