[PATCH] D122808: [clang] Fix warnings when `-Wdeprecated-enum-enum-conversion` is enabled
Antonio Frighetto via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 7 00:40:30 PDT 2022
antoniofrighetto added inline comments.
================
Comment at: llvm/unittests/ADT/STLExtrasTest.cpp:994
+ enum A { Zero = 0, One = 1 };
+ enum B { IntMax = INT_MAX, ULongLongMax = ULLONG_MAX };
+ enum class C : unsigned { Two = 2 };
----------------
aaron.ballman wrote:
> It looks like you need to include `<climits>` for the macros.
Right, saw the CI, fixed, thanks! :)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122808/new/
https://reviews.llvm.org/D122808
More information about the llvm-commits
mailing list