Libraries: Move #pragma once above include headers

The #pragma once was placed after the #include directives instead of
immediately after the copyright comment, inconsistent with every other
header file
This commit is contained in:
Davi Gomes 2026-03-21 21:18:08 -03:00 committed by Shannon Booth
parent 94bc00248f
commit 6d77c9edd1
6 changed files with 12 additions and 12 deletions

View file

@ -4,12 +4,12 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/HashTable.h>
#include <LibGC/Cell.h>
#include <LibGC/CellAllocator.h>
#pragma once
namespace GC {
template<typename T>

View file

@ -4,13 +4,13 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/HashMap.h>
#include <AK/QuickSort.h>
#include <AK/Vector.h>
#include <LibGfx/FourCC.h>
#pragma once
namespace Gfx {
struct FontVariationAxis {

View file

@ -4,6 +4,8 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/HashMap.h>
#include <AK/Optional.h>
#include <AK/Span.h>
@ -11,8 +13,6 @@
#include <AK/Vector.h>
#include <LibCore/SharedCircularQueue.h>
#pragma once
// These concepts are used to help the compiler distinguish between specializations that would be
// ambiguous otherwise. For example, if the specializations for int and Vector<T> were declared as
// follows:

View file

@ -8,6 +8,8 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGC/CellAllocator.h>
#include <LibGfx/FontCascadeList.h>
#include <LibWeb/CSS/Fetch.h>
@ -18,8 +20,6 @@
#include <LibWeb/Forward.h>
#include <LibWeb/PixelUnits.h>
#pragma once
namespace Web::CSS {
struct FontFaceKey;

View file

@ -5,13 +5,13 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/FlyString.h>
#include <AK/HashMap.h>
#include <LibGfx/ShapeFeature.h>
#include <LibWeb/Forward.h>
#pragma once
namespace Web::CSS {
enum class FontFeatureValueType : u8 {

View file

@ -4,12 +4,12 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGfx/Forward.h>
#include <LibWeb/Forward.h>
#include <LibWeb/PixelUnits.h>
#pragma once
namespace Web::Painting {
class SVGMaskable {