llvm-project/llvm/unittests/ADT
Zijia Zhu 8719faafdb [ADT] Make SmallSet::insert(const T &) return const_iterator
This patch makes `SmallSet::insert(const T &)` return
`std::pair<const_iterator, bool>` instead of
`std::pair<NoneType, bool>`. This will exactly match std::set's behavior
and make deduplicating items with SmallSet easier.

Reviewed By: dblaikie, lattner

Differential Revision: https://reviews.llvm.org/D131549
2022-08-15 13:53:34 +08:00
..
APFixedPointTest.cpp [Fixed Point] Fix C++20 compilation error 2022-07-13 08:36:04 -04:00
APFloatTest.cpp [APFloat] Fix truncation of certain subnormal numbers 2022-06-08 21:54:35 +03:00
APIntTest.cpp [ISel] Match all bits when merge undefs for DAG combine 2022-07-01 09:09:43 +08:00
APSIntTest.cpp
AnyTest.cpp
ArrayRefTest.cpp ADT/ArrayRef: Add makeMutableArrayRef overloads 2022-06-09 09:59:50 +02:00
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 [ADT][NFC] Early bail out for ComputeEditDistance 2022-06-08 08:20:29 +01: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 Fix assertion in SmallDenseMap constructor with reserve from non-power-of-2 buckets count 2022-07-25 17:09:44 +00:00
DenseSetTest.cpp
DepthFirstIteratorTest.cpp
DirectedGraphTest.cpp
EditDistanceTest.cpp [ADT][NFC] Early bail out for ComputeEditDistance 2022-06-08 08:20:29 +01:00
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
FunctionRefTest.cpp
HashingTest.cpp
IListBaseTest.cpp
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 [ADT] Explicitly delete copy/move constructors and operator= in IntervalMap 2022-05-26 07:58:18 -07:00
IntrusiveRefCntPtrTest.cpp
IteratorTest.cpp [llvm] Remove uses of deprecated `std::iterator` 2022-08-06 14:07:37 +02:00
MapVectorTest.cpp
MappedIteratorTest.cpp [mlir] Optimize usage of llvm::mapped_iterator 2021-11-11 03:26:29 +00:00
OptionalTest.cpp [ADT] Implement Optional::transform 2022-08-13 11:48:25 -07:00
PackedVectorTest.cpp
PointerEmbeddedIntTest.cpp
PointerIntPairTest.cpp
PointerSumTypeTest.cpp
PointerUnionTest.cpp [PointerUnionTest] Fix an incorrectly written test 2022-06-07 11:26:28 -07:00
PostOrderIteratorTest.cpp
PriorityWorklistTest.cpp
RangeAdapterTest.cpp
SCCIteratorTest.cpp
STLExtrasTest.cpp [llvm][ADT] Allow using structured bindings with `llvm::enumerate` 2022-08-09 18:12:40 +02:00
STLForwardCompatTest.cpp [ADT] Remove STLForwardCompat.h's C++17 equivalents 2022-08-12 12:50:52 -06: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 Use the range-based overload of llvm::sort where possible 2022-07-23 15:13:25 +02:00
SmallSetTest.cpp [ADT] Make SmallSet::insert(const T &) return const_iterator 2022-08-15 13:53:34 +08:00
SmallStringTest.cpp
SmallVectorTest.cpp [NFC] Introduce llvm::to_vector_of to allow creation of SmallVector<T> from range of items convertible to type T 2022-08-12 15:22:12 +02:00
SparseBitVectorTest.cpp
SparseMultiSetTest.cpp
SparseSetTest.cpp
StatisticTest.cpp [Support] Fix no-stat build. NFC 2022-08-14 23:55:31 +01:00
StringExtrasTest.cpp [ADT] support fixed-width output with `utohexstr` 2022-01-28 10:07:54 -08:00
StringMapTest.cpp [ADT] Use Empty Base Optimization for Allocators 2022-07-12 23:57:04 +01:00
StringRefTest.cpp [Support] Remove some #if __cplusplus > 201402L 2022-08-11 17:35:02 +00: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 [SPIR-V] Allow setting SPIR-V version via target triple. 2022-05-23 14:24:00 +01:00
TwineTest.cpp [Support] Remove some #if __cplusplus > 201402L 2022-08-11 17:35:02 +00:00
TypeSwitchTest.cpp
TypeTraitsTest.cpp