mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
AK+Kernel+Userland: Enable some more compiletime format string checks
This enables format string checks for three more functions: - String::formatted() - Builder::appendff() - KBufferBuilder::appendff()
This commit is contained in:
parent
c989e55195
commit
7c2754c3a6
Notes:
sideshowbarker
2024-07-18 21:59:47 +09:00
Author: https://github.com/alimpfard
Commit: 7c2754c3a6
Pull-request: https://github.com/SerenityOS/serenity/pull/5468
6 changed files with 24 additions and 17 deletions
|
@ -52,9 +52,9 @@ public:
|
|||
void append_escaped_for_json(const StringView&);
|
||||
|
||||
template<typename... Parameters>
|
||||
void appendff(StringView fmtstr, const Parameters&... parameters)
|
||||
void appendff(CheckedFormatString<Parameters...>&& fmtstr, const Parameters&... parameters)
|
||||
{
|
||||
vformat(*this, fmtstr, VariadicFormatParams { parameters... });
|
||||
vformat(*this, fmtstr.view(), VariadicFormatParams { parameters... });
|
||||
}
|
||||
|
||||
String build() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue