diff --git a/AK/Format.cpp b/AK/Format.cpp index a4823b8e755..aad9a12dabf 100644 --- a/AK/Format.cpp +++ b/AK/Format.cpp @@ -182,13 +182,18 @@ void Formatter::value>::Type>::format(StringB template struct Formatter; template struct Formatter; -template struct Formatter; -template struct Formatter; -template struct Formatter; -template struct Formatter; -template struct Formatter; -template struct Formatter; -template struct Formatter; -template struct Formatter; +template struct Formatter; +template struct Formatter; +template struct Formatter; +template struct Formatter; +template struct Formatter; +template struct Formatter; +template struct Formatter; +template struct Formatter; +template struct Formatter; +template struct Formatter; + +// C++ is weird. +template struct Formatter; } // namespace AK diff --git a/AK/NeverDestroyed.h b/AK/NeverDestroyed.h index 361f5190433..64035a759a2 100644 --- a/AK/NeverDestroyed.h +++ b/AK/NeverDestroyed.h @@ -27,7 +27,7 @@ #pragma once #include -#include +#include namespace AK { diff --git a/AK/StdLibExtras.h b/AK/StdLibExtras.h index 68a662bd9a2..9de44d09639 100644 --- a/AK/StdLibExtras.h +++ b/AK/StdLibExtras.h @@ -26,11 +26,6 @@ #pragma once -typedef __UINT64_TYPE__ u64; -typedef __UINT32_TYPE__ u32; -typedef __UINT16_TYPE__ u16; -typedef __UINT8_TYPE__ u8; - #define UNUSED_PARAM(x) (void)x inline constexpr unsigned round_up_to_power_of_two(unsigned value, unsigned power_of_two) @@ -461,16 +456,19 @@ template struct __IsIntegral : FalseType { }; template<> -struct __IsIntegral : TrueType { +struct __IsIntegral : TrueType { }; template<> -struct __IsIntegral : TrueType { +struct __IsIntegral : TrueType { }; template<> -struct __IsIntegral : TrueType { +struct __IsIntegral : TrueType { }; template<> -struct __IsIntegral : TrueType { +struct __IsIntegral : TrueType { +}; +template<> +struct __IsIntegral : TrueType { }; template using IsIntegral = __IsIntegral::Type>::Type>; diff --git a/AK/Tests/TestFormat.cpp b/AK/Tests/TestFormat.cpp index 90d682e9db1..4e4a284ae51 100644 --- a/AK/Tests/TestFormat.cpp +++ b/AK/Tests/TestFormat.cpp @@ -43,7 +43,7 @@ TEST_CASE(format_integers) EXPECT_EQ(AK::format("{}", -17), "-17"); EXPECT_EQ(AK::format("{:04}", 13), "0013"); EXPECT_EQ(AK::format("{:08x}", 4096), "00001000"); - // EXPECT_EQ(AK::format("{}", 0x1111222233334444ull), "1111222233334444"); + EXPECT_EQ(AK::format("{:x}", 0x1111222233334444ull), "1111222233334444"); } TEST_CASE(reorder_format_arguments)