[libcxx-commits] [libcxx] 1d55c9e - [libcxx testing] Fix -Wtautological-overlap-compare bug
David Zarzycki via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 13 00:56:38 PST 2019
Author: David Zarzycki
Date: 2019-11-13T10:55:19+02:00
New Revision: 1d55c9e59ebf3f3ff572d42da433b2f72f1ce900
URL: https://github.com/llvm/llvm-project/commit/1d55c9e59ebf3f3ff572d42da433b2f72f1ce900
DIFF: https://github.com/llvm/llvm-project/commit/1d55c9e59ebf3f3ff572d42da433b2f72f1ce900.diff
LOG: [libcxx testing] Fix -Wtautological-overlap-compare bug
Added:
Modified:
libcxx/test/support/container_debug_tests.h
Removed:
################################################################################
diff --git a/libcxx/test/support/container_debug_tests.h b/libcxx/test/support/container_debug_tests.h
index 347196ac79c9..36496c24e2bc 100644
--- a/libcxx/test/support/container_debug_tests.h
+++ b/libcxx/test/support/container_debug_tests.h
@@ -63,15 +63,15 @@ enum ContainerType {
};
constexpr bool isSequential(ContainerType CT) {
- return CT_Vector >= CT && CT_ForwardList <= CT;
+ return CT >= CT_Vector && CT <= CT_ForwardList;
}
constexpr bool isAssociative(ContainerType CT) {
- return CT_Map >= CT && CT_MultiSet <= CT;
+ return CT >= CT_Map && CT <= CT_MultiSet;
}
constexpr bool isUnordered(ContainerType CT) {
- return CT_UnorderedMap >= CT && CT_UnorderedMultiSet <= CT;
+ return CT >= CT_UnorderedMap && CT <= CT_UnorderedMultiSet;
}
constexpr bool isSet(ContainerType CT) {
More information about the libcxx-commits
mailing list