llvm-project/llvm/unittests/ADT
Chris Bieneman b39f437757 [ADT] add initializer list specialization for is_contained
Adding an initializer list specialization for is_contained allows for
compile-time evaluation when called with a constant or runtime
evaluation for non-constant values.

This patch doesn't add any uses of this template, but that is coming in
a subsequent patch.

Reviewed By: pete

Differential Revision: https://reviews.llvm.org/D122079
2022-03-29 12:39:39 -05:00
..
APFixedPointTest.cpp
APFloatTest.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
APIntTest.cpp Fix signed/unsigned comparison warnings on ppc buildbots 2022-02-08 14:15:28 +00:00
APSIntTest.cpp
AnyTest.cpp
ArrayRefTest.cpp
BitFieldsTest.cpp
BitVectorTest.cpp [llvm][ADT] Implement `BitVector::{pop_,}back` 2022-01-21 14:50:53 +01:00
BitmaskEnumTest.cpp [ADT] Make BitmaskEnum operations constant expressions 2022-03-11 11:11:55 +01:00
BreadthFirstIteratorTest.cpp
BumpPtrListTest.cpp
CMakeLists.txt Remove Waymarking.h as it is unused 2022-01-28 14:20:06 -05:00
CoalescingBitVectorTest.cpp
CombinationGeneratorTest.cpp [NFC] Move CombinationGenerator from Exegesis to ADT 2021-11-05 16:53:46 +03:00
DAGDeltaAlgorithmTest.cpp
DeltaAlgorithmTest.cpp
DenseMapTest.cpp [llvm] Add a SFINAE template parameter to DenseMapInfo 2021-11-16 18:54:14 +00:00
DenseSetTest.cpp Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
DepthFirstIteratorTest.cpp
DirectedGraphTest.cpp
EnumeratedArrayTest.cpp
EquivalenceClassesTest.cpp [adt] Fix compiler warning in test 2021-12-15 16:13:24 +09:00
FallibleIteratorTest.cpp
FloatingPointMode.cpp
FoldingSet.cpp
FunctionExtrasTest.cpp [ADT] Extend EnableIfCallable for callables with incomplete returns 2021-09-13 19:16:16 +00:00
FunctionRefTest.cpp
HashingTest.cpp [Support] Automatically support `hash_value` when `HashBuilder` support is available. 2021-09-07 09:56:11 -07:00
IListBaseTest.cpp Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
IListIteratorTest.cpp
IListNodeBaseTest.cpp
IListNodeTest.cpp
IListSentinelTest.cpp
IListTest.cpp
ImmutableListTest.cpp
ImmutableMapTest.cpp
ImmutableSetTest.cpp [ADT] Remove ImmutableSet::foreach and ImmutableMap::foreach (NFC) 2022-01-01 22:05:14 -08:00
IntEqClassesTest.cpp
IntervalMapTest.cpp
IntrusiveRefCntPtrTest.cpp Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
IteratorTest.cpp ADT: Fix const-correctness of iterator facade 2021-11-12 20:41:47 -08:00
MapVectorTest.cpp Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
MappedIteratorTest.cpp [mlir] Optimize usage of llvm::mapped_iterator 2021-11-11 03:26:29 +00:00
OptionalTest.cpp Remove redundant LLVM_HAS_RVALUE_REFERENCE_THIS and LLVM_LVALUE_FUNCTION defines 2022-02-02 16:56:26 +00:00
PackedVectorTest.cpp
PointerEmbeddedIntTest.cpp
PointerIntPairTest.cpp
PointerSumTypeTest.cpp
PointerUnionTest.cpp
PostOrderIteratorTest.cpp
PriorityWorklistTest.cpp Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
RangeAdapterTest.cpp Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
SCCIteratorTest.cpp
STLExtrasTest.cpp [ADT] add initializer list specialization for is_contained 2022-03-29 12:39:39 -05:00
STLForwardCompatTest.cpp Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
ScopeExitTest.cpp
SequenceTest.cpp Move STLFunctionalExtras out of STLExtras 2022-01-24 14:13:21 +01:00
SetVectorTest.cpp
SimpleIListTest.cpp Move STLFunctionalExtras out of STLExtras 2022-01-24 14:13:21 +01:00
SmallPtrSetTest.cpp Move STLFunctionalExtras out of STLExtras 2022-01-24 14:13:21 +01:00
SmallSetTest.cpp
SmallStringTest.cpp [llvm] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
SmallVectorTest.cpp ADT: Add SmallVectorImpl::truncate() to replace uses of set_size() 2021-12-08 13:57:48 -08:00
SparseBitVectorTest.cpp
SparseMultiSetTest.cpp
SparseSetTest.cpp
StatisticTest.cpp
StringExtrasTest.cpp [ADT] support fixed-width output with `utohexstr` 2022-01-28 10:07:54 -08:00
StringMapTest.cpp Move STLFunctionalExtras out of STLExtras 2022-01-24 14:13:21 +01:00
StringRefTest.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
StringSetTest.cpp Move STLFunctionalExtras out of STLExtras 2022-01-24 14:13:21 +01:00
StringSwitchTest.cpp
TestGraph.h
TinyPtrVectorTest.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
TripleTest.cpp [ADT] Flesh out HLSL raytracing environments 2022-03-29 09:43:03 -05:00
TwineTest.cpp Consolidate string types into ptr and length representations. 2021-07-20 13:29:57 -07:00
TypeSwitchTest.cpp
TypeTraitsTest.cpp