diff options
author | Andreas Kling <kling@serenityos.org> | 2023-04-08 07:34:01 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-08 13:43:25 +0200 |
commit | e1f5aae632ceac5dd615991a61058ba17bab402a (patch) | |
tree | 66c13a5dadc8f388e284a2cd7427da74496d618f /AK/StdLibExtras.h | |
parent | 9264303f5db9c6248922104428ed25b40b0dcf4e (diff) | |
download | serenity-e1f5aae632ceac5dd615991a61058ba17bab402a.zip |
AK: Bake CLion IDE check into AK_COMPILER_CLANG
For whatever reason, when CLion does its code indexing thing, it doesn't
define __clang__ despite using Clang. This causes it to run into various
problems that we've solved by checking for Clang.
Since CLion does define __CLION_IDE__ (or sometimes __CLION_IDE_, no
idea why but I have seen this issue locally), let's make that part of
the AK_COMPILER_CLANG check.
This makes CLion stop highlighting various things as errors.
Diffstat (limited to 'AK/StdLibExtras.h')
-rw-r--r-- | AK/StdLibExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <AK/Platform.h> -#if defined(AK_COMPILER_CLANG) || defined(__CLION_IDE__) +#if defined(AK_COMPILER_CLANG) # pragma clang diagnostic ignored "-Wunqualified-std-cast-call" #endif |