summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-07 00:36:05 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-08 00:35:27 +0100
commitc837bd551e7e37860d2b61c5dbcd393120619178 (patch)
tree5588fde28001a60ae76cd7c168be161640217d5e /AK
parent880964755b6286d5c288f53346a2bd1fde33996b (diff)
downloadserenity-c837bd551e7e37860d2b61c5dbcd393120619178.zip
AK: Don't define ENABLE_COMPILETIME_FORMAT_CHECK when parsed by CLion
Diffstat (limited to 'AK')
-rw-r--r--AK/CheckedFormatString.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/CheckedFormatString.h b/AK/CheckedFormatString.h
index bffce42202..33943be44c 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