AK: Recognize __CLION_IDE__ as well as __CLION_IDE_

This used to be `__CLION_IDE_` before, but it seems to have been fixed
in the latest EAP.
This commit is contained in:
Ali Mohammad Pur 2022-06-25 19:11:28 +04:30 committed by Linus Groh
parent 0e2f4c50d3
commit 2104e9a6e4
Notes: sideshowbarker 2024-07-17 09:57:15 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@
#ifdef ENABLE_COMPILETIME_FORMAT_CHECK #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, // 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. // it seems to entirely forget that it accepted that parameters to a 'consteval' function to begin with.
# if defined(__clang__) || defined(__CLION_IDE_) # if defined(__clang__) || defined(__CLION_IDE__) || defined(__CLION_IDE_)
# undef ENABLE_COMPILETIME_FORMAT_CHECK # undef ENABLE_COMPILETIME_FORMAT_CHECK
# endif # endif
#endif #endif

View file

@ -35,7 +35,7 @@
# define VALIDATE_IS_X86() static_assert(false, "Trying to include x86 only header on non x86 platform"); # define VALIDATE_IS_X86() static_assert(false, "Trying to include x86 only header on non x86 platform");
#endif #endif
#if !defined(__clang__) && !defined(__CLION_IDE_) #if !defined(__clang__) && !defined(__CLION_IDE_) && !defined(__CLION_IDE__)
# define AK_HAS_CONDITIONALLY_TRIVIAL # define AK_HAS_CONDITIONALLY_TRIVIAL
#endif #endif