From 696c92882aa9e6060489072408144a9080c419fe Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Thu, 6 Jul 2023 20:41:32 +1200 Subject: [PATCH] LibDiff: Add a forwarding header --- Userland/Libraries/LibDiff/Format.cpp | 1 + Userland/Libraries/LibDiff/Format.h | 2 +- Userland/Libraries/LibDiff/Forward.h | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 Userland/Libraries/LibDiff/Forward.h diff --git a/Userland/Libraries/LibDiff/Format.cpp b/Userland/Libraries/LibDiff/Format.cpp index f3c4c1c7ce..da13b2eb12 100644 --- a/Userland/Libraries/LibDiff/Format.cpp +++ b/Userland/Libraries/LibDiff/Format.cpp @@ -12,6 +12,7 @@ #include #include #include +#include namespace Diff { DeprecatedString generate_only_additions(StringView text) diff --git a/Userland/Libraries/LibDiff/Format.h b/Userland/Libraries/LibDiff/Format.h index f6a83627a2..c3cba5785d 100644 --- a/Userland/Libraries/LibDiff/Format.h +++ b/Userland/Libraries/LibDiff/Format.h @@ -9,7 +9,7 @@ #include #include -#include +#include namespace Diff { diff --git a/Userland/Libraries/LibDiff/Forward.h b/Userland/Libraries/LibDiff/Forward.h new file mode 100644 index 0000000000..484bbf0dd9 --- /dev/null +++ b/Userland/Libraries/LibDiff/Forward.h @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2023, Shannon Booth + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +namespace Diff { + +struct Hunk; +struct HunkLocation; +struct Line; +struct Range; + +}