ladybird/Kernel/Devices/HID
Lenny Maiorani 5751327195 Kernel: 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:47 +01:00
..
HIDDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HIDManagement.cpp Kernel: static vs non-static constexpr variables 2021-05-19 21:21:47 +01:00
HIDManagement.h Kernel: static vs non-static constexpr variables 2021-05-19 21:21:47 +01:00
I8042Controller.cpp Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
I8042Controller.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
KeyboardDevice.cpp Kernel: static vs non-static constexpr variables 2021-05-19 21:21:47 +01:00
KeyboardDevice.h Kernel: Allow remapping Caps Lock to Control (#6883) 2021-05-05 23:10:56 +02:00
MouseDevice.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
MouseDevice.h Kernel: Expose minor device numbers for keyboard and mouse 2021-05-01 20:07:11 +02:00
PS2KeyboardDevice.cpp Kernel: Print scheduler state to the display console 2021-05-16 19:58:33 +02:00
PS2KeyboardDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
PS2MouseDevice.cpp Everywhere: Turn #if *_DEBUG into dbgln_if/if constexpr 2021-05-01 21:25:06 +02:00
PS2MouseDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
VMWareMouseDevice.cpp AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
VMWareMouseDevice.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00