[PATCH] D122808: [clang] Fix warnings when `-Wdeprecated-enum-enum-conversion` is enabled
Aaron Ballman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 15:19:50 PDT 2022
aaron.ballman 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 };
----------------
It looks like you need to include `<climits>` for the macros.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122808/new/
https://reviews.llvm.org/D122808
More information about the llvm-commits
mailing list