1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00
serenity/Userland/Libraries/LibVT
Lenny Maiorani 800ea8ea96 Userland: 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-21 10:07:06 +01:00
..
Attribute.h Userland: static vs non-static constexpr variables 2021-05-21 10:07:06 +01:00
CMakeLists.txt Meta: Make generate_state_machine() generate a proper target 2021-05-20 12:11:27 +01:00
EscapeSequenceParser.cpp LibVT: Implement new ANSI escape sequence parser 2021-05-16 11:50:56 +02:00
EscapeSequenceParser.h LibVT: Implement new ANSI escape sequence parser 2021-05-16 11:50:56 +02:00
Line.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Line.h Kernel/Graphics + SystemServer: Support text mode properly 2021-05-16 19:58:33 +02:00
Position.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Range.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
StateMachine.txt LibVT: Fix 8-bit control codes clobbering UTF-8 2021-05-16 14:17:04 +02:00
Terminal.cpp LibVT: Correct color handling 2021-05-17 18:19:49 +02:00
Terminal.h LibVT: Fix newline handling 2021-05-17 18:19:49 +02:00
TerminalWidget.cpp LibGfx: Remove Gfx::FontDatabase::default_bold_fixed_width_font() 2021-05-20 20:55:29 +02:00
TerminalWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
XtermColors.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00