From c837bd551e7e37860d2b61c5dbcd393120619178 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 7 Nov 2021 00:36:05 +0100 Subject: [PATCH] AK: Don't define ENABLE_COMPILETIME_FORMAT_CHECK when parsed by CLion --- AK/CheckedFormatString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/CheckedFormatString.h b/AK/CheckedFormatString.h index bffce42202c..33943be44c4 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. -# ifdef __clang__ +# if defined(__clang__) || defined(__CLION_IDE_) # undef ENABLE_COMPILETIME_FORMAT_CHECK # endif #endif