1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:07:43 +00:00
serenity/Userland/Shell
AnotherTest 347d741afb AK+Userland: Extend the compiletime format string check to other functions
Thanks to @trflynn89 for the neat implicit consteval ctor trick!
This allows us to basically slap `CheckedFormatString` on any
formatting function, and have its format argument checked at compiletime.

Note that there is a validator bug where it doesn't parse inner replaced
fields like `{:~>{}}` correctly (what should be 'left align with next
argument as size' is parsed as `{:~>{` following a literal closing
brace), so the compiletime checks are disabled on these temporarily by
forcing them to be StringViews.

This commit also removes the now unused `AK::StringLiteral` type (which
was introduced for use with NTTP strings).
2021-02-23 13:59:33 +01:00
..
Tests Shell: Make tests use PASS/FAIL instead of exit codes 2021-01-19 08:19:43 +01:00
AST.cpp Shell: Convert dbgprintf() => dbgln() 2021-02-17 16:18:53 +01:00
AST.h Shell: Make history range values larger than u32 a syntax error 2021-02-03 10:14:32 +01:00
Builtin.cpp Shell: Add a not builtin 2021-01-19 08:19:43 +01:00
CMakeLists.txt Shell: Move Shell syntax highlighter LibShell 2021-02-07 17:07:33 +01:00
Execution.h Shell: Move to Userland/Shell/ 2021-01-12 12:04:07 +01:00
Formatter.cpp Shell: Make the parser read consecutive sequences without recursing 2021-01-23 08:28:58 +01:00
Formatter.h Shell: Add formatter for history events 2021-01-15 19:13:03 +01:00
Forward.h Shell: Add (basic) support for history event designators 2021-01-15 19:13:03 +01:00
Job.cpp Shell: Move to Userland/Shell/ 2021-01-12 12:04:07 +01:00
Job.h Everywhere: Replace a bundle of dbg with dbgln. 2021-01-22 22:14:30 +01:00
main.cpp Everywhere: Fix typos 2021-01-22 18:41:29 +01:00
NodeVisitor.cpp Shell: Make the parser read consecutive sequences without recursing 2021-01-23 08:28:58 +01:00
NodeVisitor.h Shell: Add (basic) support for history event designators 2021-01-15 19:13:03 +01:00
Parser.cpp Shell: Make history index values not fitting in i32 a syntax error 2021-02-07 13:12:56 +01:00
Parser.h Shell: Make the parser read consecutive sequences without recursing 2021-01-23 08:28:58 +01:00
Shell.cpp AK+Userland: Extend the compiletime format string check to other functions 2021-02-23 13:59:33 +01:00
Shell.h Shell: Add a not builtin 2021-01-19 08:19:43 +01:00
SyntaxHighlighter.cpp LibSyntax: Make rehighlight() take Gfx::Palette as by const-reference 2021-02-11 23:52:39 +01:00
SyntaxHighlighter.h LibSyntax: Make rehighlight() take Gfx::Palette as by const-reference 2021-02-11 23:52:39 +01:00