diff --git a/AK/Format.cpp b/AK/Format.cpp index a7dc73f4ff2886713124e548babbd66a1ff8e5af..f9316aff382b435875768e9a945eb093f6b6a99e 100644 --- a/AK/Format.cpp +++ b/AK/Format.cpp @@ -26,6 +26,21 @@ namespace AK { +class FormatParser : public GenericLexer { +public: + struct FormatSpecifier { + StringView flags; + size_t index; + }; + + explicit FormatParser(StringView input); + + StringView consume_literal(); + bool consume_number(size_t& value); + bool consume_specifier(FormatSpecifier& specifier); + bool consume_replacement_field(size_t& index); +}; + namespace { static constexpr size_t use_next_index = NumericLimits::max(); diff --git a/AK/Format.h b/AK/Format.h index 8c9f3184d1e609161492d4b37b18c48058346de6..e6013e3558c1efaa43a202212694b09de6d8fb74 100644 --- a/AK/Format.h +++ b/AK/Format.h @@ -11,7 +11,6 @@ #include #include #include -#include #include #include @@ -121,21 +120,6 @@ struct TypeErasedParameter { void (*formatter)(TypeErasedFormatParams&, FormatBuilder&, FormatParser&, const void* value); }; -class FormatParser : public GenericLexer { -public: - struct FormatSpecifier { - StringView flags; - size_t index; - }; - - explicit FormatParser(StringView input); - - StringView consume_literal(); - bool consume_number(size_t& value); - bool consume_specifier(FormatSpecifier& specifier); - bool consume_replacement_field(size_t& index); -}; - class FormatBuilder { public: enum class Align { diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp index 661e7ecbf6f76ee169c2af2fdd7a2f685ffc4290..3afe6bb43af73c99ae2d3b51ae9451da36ab71e0 100644 --- a/Kernel/FileSystem/VirtualFileSystem.cpp +++ b/Kernel/FileSystem/VirtualFileSystem.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include #include #include diff --git a/Userland/Applications/Mail/MailWidget.cpp b/Userland/Applications/Mail/MailWidget.cpp index 566025c30c918a3468f73651ca646682df2f8383..524832e6e5434fb4154fc66b619c92984bb5fdb7 100644 --- a/Userland/Applications/Mail/MailWidget.cpp +++ b/Userland/Applications/Mail/MailWidget.cpp @@ -6,6 +6,7 @@ #include "MailWidget.h" #include +#include #include #include #include diff --git a/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp b/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp index c7a2c6514161e605b7ae57c9197f5ea35293bf2c..55d02516d04abfb4a8cfe4cf39261bef63285c2e 100644 --- a/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp +++ b/Userland/Libraries/LibCrypto/ASN1/ASN1.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include namespace Crypto::ASN1 { diff --git a/Userland/Libraries/LibRegex/RegexMatcher.h b/Userland/Libraries/LibRegex/RegexMatcher.h index 9b91fcff4d3ce33bb206c8fe1e35a8d88011fd3c..e66aa8dc5b53cbfc46455988402bb2bd59358bcb 100644 --- a/Userland/Libraries/LibRegex/RegexMatcher.h +++ b/Userland/Libraries/LibRegex/RegexMatcher.h @@ -12,6 +12,7 @@ #include "RegexParser.h" #include +#include #include #include #include diff --git a/Userland/Libraries/LibRegex/RegexParser.cpp b/Userland/Libraries/LibRegex/RegexParser.cpp index 1a6310f375331a4052fa99c396eaeb2823f3ed9c..c36979a0970472811edb3d0c0123f7fbafce55d3 100644 --- a/Userland/Libraries/LibRegex/RegexParser.cpp +++ b/Userland/Libraries/LibRegex/RegexParser.cpp @@ -8,6 +8,7 @@ #include "RegexParser.h" #include "RegexDebug.h" #include +#include #include #include #include diff --git a/Userland/Libraries/LibWeb/CSS/Selector.cpp b/Userland/Libraries/LibWeb/CSS/Selector.cpp index af669b44b02862156a27ab9dd69a0a847d2bf5cf..a532df7dd9cb1077a7ec4d5bc81f613e69bfd316 100644 --- a/Userland/Libraries/LibWeb/CSS/Selector.cpp +++ b/Userland/Libraries/LibWeb/CSS/Selector.cpp @@ -5,6 +5,7 @@ */ #include "Selector.h" +#include #include #include diff --git a/Userland/Shell/Parser.cpp b/Userland/Shell/Parser.cpp index 0f3bd2b5b62eb66479285d4c942ff6a084d2c025..68ff39accf4a34fc66d81298d0d28f083863b109 100644 --- a/Userland/Shell/Parser.cpp +++ b/Userland/Shell/Parser.cpp @@ -7,6 +7,7 @@ #include "Parser.h" #include "Shell.h" #include +#include #include #include #include diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp index b16e7fef3756d6aae391bf47ea80269b05c8ed51..4f7469dd16d2bbb8a3db83cb93eafbedbf4056f1 100644 --- a/Userland/Shell/Shell.cpp +++ b/Userland/Shell/Shell.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/Userland/Utilities/tr.cpp b/Userland/Utilities/tr.cpp index e9da1461adc9eb797117f9dc042fb579c3b7ead0..ae695d80035149823c1020fe9e7331eb140696dd 100644 --- a/Userland/Utilities/tr.cpp +++ b/Userland/Utilities/tr.cpp @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include #include #include #include