diff --git a/AK/CheckedFormatString.h b/AK/CheckedFormatString.h index 121d57eceb..f3b9ca41f0 100644 --- a/AK/CheckedFormatString.h +++ b/AK/CheckedFormatString.h @@ -14,7 +14,7 @@ #ifdef ENABLE_COMPILETIME_FORMAT_CHECK // FIXME: Seems like clang doesn't like calling 'consteval' functions inside 'consteval' functions quite the same way as GCC does, // it seems to entirely forget that it accepted that parameters to a 'consteval' function to begin with. -# if defined(AK_COMPILER_CLANG) || defined(__CLION_IDE__) || defined(__CLION_IDE_) +# if defined(AK_COMPILER_CLANG) # undef ENABLE_COMPILETIME_FORMAT_CHECK # endif #endif diff --git a/AK/Platform.h b/AK/Platform.h index a3d08c94a6..3ea0dcade6 100644 --- a/AK/Platform.h +++ b/AK/Platform.h @@ -38,7 +38,7 @@ # define AK_ARCH_32_BIT #endif -#if defined(__clang__) +#if defined(__clang__) || defined(__CLION_IDE__) || defined(__CLION_IDE_) # define AK_COMPILER_CLANG #elif defined(__GNUC__) # define AK_COMPILER_GCC @@ -116,7 +116,7 @@ # define VALIDATE_IS_AARCH64() static_assert(false, "Trying to include aarch64 only header on non aarch64 platform"); #endif -#if !defined(AK_COMPILER_CLANG) && !defined(__CLION_IDE_) && !defined(__CLION_IDE__) +#if !defined(AK_COMPILER_CLANG) # define AK_HAS_CONDITIONALLY_TRIVIAL #endif diff --git a/AK/StdLibExtras.h b/AK/StdLibExtras.h index c369322c26..36d2e84ca1 100644 --- a/AK/StdLibExtras.h +++ b/AK/StdLibExtras.h @@ -8,7 +8,7 @@ #include -#if defined(AK_COMPILER_CLANG) || defined(__CLION_IDE__) +#if defined(AK_COMPILER_CLANG) # pragma clang diagnostic ignored "-Wunqualified-std-cast-call" #endif