llvm-project/llvm/unittests/ADT
Joe Loser 5e96cea1db [llvm] Use std::size instead of llvm::array_lengthof
LLVM contains a helpful function for getting the size of a C-style
array: `llvm::array_lengthof`. This is useful prior to C++17, but not as
helpful for C++17 or later: `std::size` already has support for C-style
arrays.

Change call sites to use `std::size` instead.

Differential Revision: https://reviews.llvm.org/D133429
2022-09-08 09:01:53 -06:00
..
APFixedPointTest.cpp [Fixed Point] Fix C++20 compilation error 2022-07-13 08:36:04 -04:00
APFloatTest.cpp [llvm] Use std::size instead of llvm::array_lengthof 2022-09-08 09:01:53 -06: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 [ADT] Implement Any::has_value 2022-08-20 07:28:04 -07:00
ArrayRefTest.cpp ADT/ArrayRef: Add makeMutableArrayRef overloads 2022-06-09 09:59:50 +02:00
BitFieldsTest.cpp
BitTest.cpp [ADT] Add llvm::has_single_bit helper similar to the c++20 std::has_single_bit implementation 2022-08-23 19:51:05 +01:00
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] Add unittest coverage for ADT/bit.h header 2022-08-23 12:31:17 +01:00
CoalescingBitVectorTest.cpp
CombinationGeneratorTest.cpp
DAGDeltaAlgorithmTest.cpp
DeltaAlgorithmTest.cpp
DenseMapTest.cpp [llvm][Support] Add DenseMapInfo for std::variant 2022-09-02 15:36:10 +02: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
OptionalTest.cpp [ADT] Implement Optional::transform 2022-08-13 11:48:25 -07:00
PackedVectorTest.cpp
PointerEmbeddedIntTest.cpp
PointerIntPairTest.cpp
PointerSumTypeTest.cpp
PointerUnionTest.cpp [LLVM][Support/ADT] Add assert for isPresent to dyn_cast. 2022-09-06 13:58:56 -07:00
PostOrderIteratorTest.cpp
PriorityWorklistTest.cpp
RangeAdapterTest.cpp
SCCIteratorTest.cpp
STLExtrasTest.cpp [ADT] Deprecate is_splat and replace all uses with all_equal 2022-08-23 11:36:27 -04: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 [llvm][ADT] Fix formatting for files relevant to `StringMap`. 2022-08-29 06:57:29 +00:00
StringRefTest.cpp [llvm] Use std::size instead of llvm::array_lengthof 2022-09-08 09:01:53 -06:00
StringSetTest.cpp Move STLFunctionalExtras out of STLExtras 2022-01-24 14:13:21 +01:00
StringSwitchTest.cpp
TestGraph.h
TinyPtrVectorTest.cpp [llvm] Use std::size instead of llvm::array_lengthof 2022-09-08 09:01:53 -06: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 [ADT] Remove `is_invocable` from `STLExtras.h` 2022-08-21 18:15:38 -06:00