ladybird/Tests/AK
Lenny Maiorani 2b64d163cd Tests: static vs non-static constexpr variables
Problem:
- `static` variables consume memory and sometimes are less
  optimizable.
- `static const` variables can be `constexpr`, usually.
- `static` function-local variables require an initialization check
  every time the function is run.

Solution:
- If a global `static` variable is only used in a single function then
  move it into the function and make it non-`static` and `constexpr`.
- Make all global `static` variables `constexpr` instead of `const`.
- Change function-local `static const[expr]` variables to be just
  `constexpr`.
2021-05-19 21:21:03 +01:00
..
CMakeLists.txt AK: Add a Tuple implementation 2021-05-11 14:09:17 +01:00
test.frm
TestAllOf.cpp
TestAnyOf.cpp
TestArray.cpp
TestAtomic.cpp
TestBadge.cpp
TestBase64.cpp
TestBinaryHeap.cpp
TestBinarySearch.cpp
TestBitCast.cpp
TestBitmap.cpp AK: Don't read past the end in BitmapView::count_in_range() 2021-05-16 21:58:14 +01:00
TestByteBuffer.cpp
TestChecked.cpp
TestCircularDeque.cpp
TestCircularDuplexStream.cpp
TestCircularQueue.cpp
TestComplex.cpp
TestDistinctNumeric.cpp
TestDoublyLinkedList.cpp
TestEndian.cpp
TestEnumBits.cpp
TestFind.cpp
TestFormat.cpp
TestGenericLexer.cpp
TestHashFunctions.cpp
TestHashMap.cpp Everywhere: Add missing includes for <AK/OwnPtr.h> 2021-05-19 21:36:57 +02:00
TestHashTable.cpp
TestHex.cpp
TestIndexSequence.cpp
TestIntrusiveList.cpp
TestIntrusiveRedBlackTree.cpp
TestIPv4Address.cpp
TestJSON.cpp
TestLexicalPath.cpp AK: Make LexicalPath handle relative paths correctly 2021-05-18 08:11:21 +02:00
TestMACAddress.cpp
TestMemMem.cpp
TestMemoryStream.cpp
TestNeverDestroyed.cpp Tests: Mark use-after-scope NeverDestroyed test NO_SANITIZE_ADDRESS 2021-05-14 08:34:00 +01:00
TestNonnullRefPtr.cpp
TestNumberFormat.cpp
TestOptional.cpp
TestQueue.cpp
TestQuickSort.cpp
TestRedBlackTree.cpp
TestRefPtr.cpp Tests: Fix use-after-free in TestRefPtr.self_observers 2021-05-14 08:34:00 +01:00
TestSinglyLinkedList.cpp
TestSourceGenerator.cpp
TestSourceLocation.cpp
TestSpan.cpp AK: Implement Span::starts_with() 2021-05-07 11:46:53 +01:00
TestString.cpp AK: Add String::find_all() and String::count() 2021-05-19 20:51:51 +01:00
TestStringUtils.cpp
TestStringView.cpp
TestTime.cpp
TestTrie.cpp Tests: static vs non-static constexpr variables 2021-05-19 21:21:03 +01:00
TestTuple.cpp AK: Add a Tuple implementation 2021-05-11 14:09:17 +01:00
TestTypedTransfer.cpp
TestTypeTraits.cpp
TestURL.cpp
TestUtf8.cpp
TestVariant.cpp AK: Allow AK::Variant::visit to return a value 2021-05-19 20:41:09 +02:00
TestVector.cpp
TestWeakPtr.cpp