MySQL 9.1.0
Source Code Documentation
|
Header for compiler-dependent features. More...
Go to the source code of this file.
Macros | |
#define | MY_ASSERT_UNREACHABLE() __builtin_unreachable() |
#define | ALWAYS_INLINE __attribute__((always_inline)) inline |
#define | NO_INLINE __attribute__((noinline)) |
#define | __has_attribute(x) 0 |
#define | SUPPRESS_UBSAN |
#define | SUPPRESS_TSAN |
#define | STDCALL |
#define | MY_COMPILER_CPP11_PRAGMA(X) _Pragma(#X) |
stringify parameters for C99/C++11 _Pragma(). More... | |
#define | MY_COMPILER_MSVC_PRAGMA(X) __pragma(X) |
pass parameters to MSVC's __pragma() as is. More... | |
#define | MY_COMPILER_CLANG_DIAGNOSTIC_IGNORE(X) |
#define | MY_COMPILER_CLANG_DIAGNOSTIC_ERROR(X) |
#define | MY_COMPILER_GCC_DIAGNOSTIC_IGNORE(X) |
#define | MY_COMPILER_GCC_DIAGNOSTIC_ERROR(X) |
#define | MY_COMPILER_MSVC_DIAGNOSTIC_IGNORE(X) |
#define | MY_COMPILER_MSVC_DIAGNOSTIC_ERROR(X) |
#define | MY_COMPILER_DIAGNOSTIC_PUSH() |
save the compiler's diagnostic (enabled warnings, errors, ...) state More... | |
#define | MY_COMPILER_DIAGNOSTIC_POP() |
restore the compiler's diagnostic (enabled warnings, errors, ...) state More... | |
#define | MY_COMPILER_CLANG_WORKAROUND_TPARAM_DOCBUG() MY_COMPILER_CLANG_DIAGNOSTIC_IGNORE("-Wdocumentation") |
ignore -Wdocumentation compiler warnings for @tparam. More... | |
#define | MY_COMPILER_CLANG_WORKAROUND_REF_DOCBUG() MY_COMPILER_CLANG_DIAGNOSTIC_IGNORE("-Wdocumentation") |
ignore -Wdocumentation compiler warnings for @see @ref More... | |
#define | MY_COMPILER_CLANG_WORKAROUND_FALSE_POSITIVE_UNUSED_VARIABLE_WARNING() MY_COMPILER_CLANG_DIAGNOSTIC_IGNORE("-Wunused-variable") |
ignore -Wunused-variable compiler warnings for @see @ref More... | |
Functions | |
constexpr bool | likely (bool expr) |
constexpr bool | unlikely (bool expr) |
Header for compiler-dependent features.
Intended to contain a set of reusable wrappers for preprocessor macros, attributes, pragmas, and any other features that are specific to a target compiler.
#define __has_attribute | ( | x | ) | 0 |
#define ALWAYS_INLINE __attribute__((always_inline)) inline |
#define MY_ASSERT_UNREACHABLE | ( | ) | __builtin_unreachable() |
#define MY_COMPILER_CLANG_DIAGNOSTIC_ERROR | ( | X | ) |
#define MY_COMPILER_CLANG_DIAGNOSTIC_IGNORE | ( | X | ) |
#define MY_COMPILER_CLANG_WORKAROUND_FALSE_POSITIVE_UNUSED_VARIABLE_WARNING | ( | ) | MY_COMPILER_CLANG_DIAGNOSTIC_IGNORE("-Wunused-variable") |
ignore -Wunused-variable compiler warnings for @see @ref
allows to work around false positives -Wunused-variable warnings like:
#define MY_COMPILER_CLANG_WORKAROUND_REF_DOCBUG | ( | ) | MY_COMPILER_CLANG_DIAGNOSTIC_IGNORE("-Wdocumentation") |
ignore -Wdocumentation compiler warnings for @see @ref
allows to work around false positives -Wdocumentation warnings like:
#define MY_COMPILER_CLANG_WORKAROUND_TPARAM_DOCBUG | ( | ) | MY_COMPILER_CLANG_DIAGNOSTIC_IGNORE("-Wdocumentation") |
ignore -Wdocumentation compiler warnings for @tparam.
allows to work around false positives -Wdocumentation warnings like:
#define MY_COMPILER_DIAGNOSTIC_POP | ( | ) |
restore the compiler's diagnostic (enabled warnings, errors, ...) state
#define MY_COMPILER_DIAGNOSTIC_PUSH | ( | ) |
save the compiler's diagnostic (enabled warnings, errors, ...) state
#define MY_COMPILER_GCC_DIAGNOSTIC_ERROR | ( | X | ) |
#define MY_COMPILER_GCC_DIAGNOSTIC_IGNORE | ( | X | ) |
#define MY_COMPILER_MSVC_DIAGNOSTIC_ERROR | ( | X | ) |
#define MY_COMPILER_MSVC_DIAGNOSTIC_IGNORE | ( | X | ) |
#define NO_INLINE __attribute__((noinline)) |
#define STDCALL |
#define SUPPRESS_TSAN |
#define SUPPRESS_UBSAN |
|
constexpr |
|
constexpr |