serenity/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 Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAllOf.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAnyOf.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestArray.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestAtomic.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBadge.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBase64.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBinaryHeap.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBinarySearch.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBitCast.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBitmap.cpp AK: Don't read past the end in BitmapView::count_in_range() 2021-05-16 21:58:14 +01:00
TestByteBuffer.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestChecked.cpp Tests: Add tests for Checked<T>::div() overflow 2021-05-07 09:26:11 +02:00
TestCircularDeque.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestCircularDuplexStream.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestCircularQueue.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestComplex.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestDistinctNumeric.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestDoublyLinkedList.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestEndian.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestEnumBits.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestFind.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestFormat.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestGenericLexer.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestHashFunctions.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestHashMap.cpp Everywhere: Add missing includes for <AK/OwnPtr.h> 2021-05-19 21:36:57 +02:00
TestHashTable.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestHex.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIndexSequence.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIntrusiveList.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIntrusiveRedBlackTree.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIPv4Address.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestJSON.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestLexicalPath.cpp AK: Make LexicalPath handle relative paths correctly 2021-05-18 08:11:21 +02:00
TestMACAddress.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestMemMem.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestMemoryStream.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestNeverDestroyed.cpp Tests: Mark use-after-scope NeverDestroyed test NO_SANITIZE_ADDRESS 2021-05-14 08:34:00 +01:00
TestNonnullRefPtr.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestNumberFormat.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestOptional.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestQueue.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestQuickSort.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestRedBlackTree.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestRefPtr.cpp Tests: Fix use-after-free in TestRefPtr.self_observers 2021-05-14 08:34:00 +01:00
TestSinglyLinkedList.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestSourceGenerator.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestSourceLocation.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
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 Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestStringView.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestTime.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
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 Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestTypeTraits.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestURL.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestUtf8.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestVariant.cpp AK: Allow AK::Variant::visit to return a value 2021-05-19 20:41:09 +02:00
TestVector.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestWeakPtr.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00