ladybird/Tests/LibC
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
..
accuracy-strtod.cpp Tests: static vs non-static constexpr variables 2021-05-19 21:21:03 +01:00
CMakeLists.txt Tests: Add InodeWatcher and FileWatcher tests 2021-05-12 22:38:20 +02:00
memmem-tests.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
overlong_realpath.cpp Tests: static vs non-static constexpr variables 2021-05-19 21:21:03 +01:00
qsort-sorts-and-copies.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
scanf.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
snprintf-correctness.cpp Tests: static vs non-static constexpr variables 2021-05-19 21:21:03 +01:00
stack-smash.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
strlcpy-correctness.cpp Tests: static vs non-static constexpr variables 2021-05-19 21:21:03 +01:00
TestLibCDirEnt.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
TestLibCExec.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
TestLibCInodeWatcher.cpp Tests: Add InodeWatcher and FileWatcher tests 2021-05-12 22:38:20 +02:00
TestLibCMkTemp.cpp LibC: Move mman.h to sys/mman.h 2021-05-14 22:24:02 +02:00
TestLibCTime.cpp Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00