diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2022-09-13 17:42:39 +0200 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-09-18 13:27:24 -0400 |
commit | a99cd09891a4f052e15a405dfefe4ef437e74b0a (patch) | |
tree | 48a7669b5b383f8d49ce5fdd095b7e4a9e326bab | |
parent | 48d8aff4367615d8ea90cc78abfa6f1dd6080726 (diff) | |
download | serenity-a99cd09891a4f052e15a405dfefe4ef437e74b0a.zip |
Libraries: Add missing includes, add namespace qualifiers
This remained undetected for a long time as HeaderCheck is disabled by
default. This commit makes the following file compile again:
// file: compile_me.cpp
#include <LibDNS/Question.h>
// That's it, this was enough to cause a compilation error.
Likewise for most other files touched by this commit.
-rw-r--r-- | Userland/Libraries/LibCodeComprehension/Shell/ConnectionFromClient.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibDNS/Question.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibGPU/StencilConfiguration.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/Font/VectorFont.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/PNGShared.h | 9 | ||||
-rw-r--r-- | Userland/Libraries/LibIPC/Encoder.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibLine/Style.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibPDF/XRefTable.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibSoftGPU/SIMD.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibXML/DOM/Node.h | 1 |
10 files changed, 15 insertions, 4 deletions
diff --git a/Userland/Libraries/LibCodeComprehension/Shell/ConnectionFromClient.h b/Userland/Libraries/LibCodeComprehension/Shell/ConnectionFromClient.h index edebd3de35..e427b1175a 100644 --- a/Userland/Libraries/LibCodeComprehension/Shell/ConnectionFromClient.h +++ b/Userland/Libraries/LibCodeComprehension/Shell/ConnectionFromClient.h @@ -19,7 +19,7 @@ private: ConnectionFromClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket) : LanguageServers::ConnectionFromClient(move(socket)) { - m_autocomplete_engine = make<ShellComprehensionEngine>(m_filedb); + m_autocomplete_engine = make<CodeComprehension::Shell::ShellComprehensionEngine>(m_filedb); m_autocomplete_engine->set_declarations_of_document_callback = [this](String const& filename, Vector<CodeComprehension::Declaration>&& declarations) { async_declarations_in_document(filename, move(declarations)); }; diff --git a/Userland/Libraries/LibDNS/Question.h b/Userland/Libraries/LibDNS/Question.h index ccbb7825e6..e01c206622 100644 --- a/Userland/Libraries/LibDNS/Question.h +++ b/Userland/Libraries/LibDNS/Question.h @@ -6,6 +6,7 @@ #pragma once +#include "Answer.h" #include "Name.h" #include <AK/Types.h> diff --git a/Userland/Libraries/LibGPU/StencilConfiguration.h b/Userland/Libraries/LibGPU/StencilConfiguration.h index 1c0d9503f0..b68b2d6ba1 100644 --- a/Userland/Libraries/LibGPU/StencilConfiguration.h +++ b/Userland/Libraries/LibGPU/StencilConfiguration.h @@ -6,6 +6,7 @@ #pragma once +#include <LibGPU/Config.h> #include <LibGPU/Enums.h> namespace GPU { diff --git a/Userland/Libraries/LibGfx/Font/VectorFont.h b/Userland/Libraries/LibGfx/Font/VectorFont.h index 4932818f4d..ed7ec9d141 100644 --- a/Userland/Libraries/LibGfx/Font/VectorFont.h +++ b/Userland/Libraries/LibGfx/Font/VectorFont.h @@ -8,6 +8,7 @@ #include <AK/Noncopyable.h> #include <AK/RefCounted.h> +#include <LibGfx/Forward.h> namespace Gfx { diff --git a/Userland/Libraries/LibGfx/PNGShared.h b/Userland/Libraries/LibGfx/PNGShared.h index b1fecd12c1..299fceb29e 100644 --- a/Userland/Libraries/LibGfx/PNGShared.h +++ b/Userland/Libraries/LibGfx/PNGShared.h @@ -6,6 +6,9 @@ #pragma once +#include <AK/Array.h> +#include <AK/SIMD.h> + namespace Gfx::PNG { // https://www.w3.org/TR/PNG/#5PNG-file-signature @@ -33,9 +36,9 @@ enum class FilterType : u8 { ALWAYS_INLINE u8 paeth_predictor(u8 a, u8 b, u8 c) { int p = a + b - c; - int pa = abs(p - a); - int pb = abs(p - b); - int pc = abs(p - c); + int pa = AK::abs(p - a); + int pb = AK::abs(p - b); + int pc = AK::abs(p - c); if (pa <= pb && pa <= pc) return a; if (pb <= pc) diff --git a/Userland/Libraries/LibIPC/Encoder.h b/Userland/Libraries/LibIPC/Encoder.h index 4c39ebd64b..c5bbc72bea 100644 --- a/Userland/Libraries/LibIPC/Encoder.h +++ b/Userland/Libraries/LibIPC/Encoder.h @@ -7,6 +7,7 @@ #pragma once #include <AK/Concepts.h> +#include <AK/HashMap.h> #include <AK/StdLibExtras.h> #include <LibCore/SharedCircularQueue.h> #include <LibIPC/Forward.h> diff --git a/Userland/Libraries/LibLine/Style.h b/Userland/Libraries/LibLine/Style.h index a2b4e0bba3..9d2a3627e0 100644 --- a/Userland/Libraries/LibLine/Style.h +++ b/Userland/Libraries/LibLine/Style.h @@ -8,6 +8,7 @@ #include <AK/String.h> #include <AK/Types.h> +#include <AK/Utf8View.h> #include <AK/Vector.h> #include <stdlib.h> diff --git a/Userland/Libraries/LibPDF/XRefTable.h b/Userland/Libraries/LibPDF/XRefTable.h index 8c5abe14c9..3aeb75d449 100644 --- a/Userland/Libraries/LibPDF/XRefTable.h +++ b/Userland/Libraries/LibPDF/XRefTable.h @@ -10,6 +10,7 @@ #include <AK/RefCounted.h> #include <AK/String.h> #include <AK/Vector.h> +#include <LibPDF/Error.h> namespace PDF { diff --git a/Userland/Libraries/LibSoftGPU/SIMD.h b/Userland/Libraries/LibSoftGPU/SIMD.h index 5981166698..c0ab018cde 100644 --- a/Userland/Libraries/LibSoftGPU/SIMD.h +++ b/Userland/Libraries/LibSoftGPU/SIMD.h @@ -7,6 +7,7 @@ #pragma once #include <AK/SIMDExtras.h> +#include <AK/SIMDMath.h> #include <LibGfx/Vector2.h> #include <LibGfx/Vector3.h> #include <LibGfx/Vector4.h> diff --git a/Userland/Libraries/LibXML/DOM/Node.h b/Userland/Libraries/LibXML/DOM/Node.h index 1394538a95..a64463e4ca 100644 --- a/Userland/Libraries/LibXML/DOM/Node.h +++ b/Userland/Libraries/LibXML/DOM/Node.h @@ -6,6 +6,7 @@ #pragma once +#include <AK/HashMap.h> #include <AK/NonnullOwnPtrVector.h> #include <AK/String.h> #include <AK/Variant.h> |