Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcompilerdetection.h File Reference

(d9d4d15aef4cd198213c36d364800493d55134ec)

#include <QtCore/qprocessordetection.h>
#include <QtCore/qsystemdetection.h>
#include <QtCore/qtconfiginclude.h>
+ Include dependency graph for qcompilerdetection.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define QCOMPILERDETECTION_H
 
#define __has_builtin(x)
 
#define __has_feature(x)
 
#define __has_attribute(x)
 
#define __has_cpp_attribute(x)
 
#define __has_include(x)
 
#define __has_include_next(x)
 
#define Q_COMPILER_THREADSAFE_STATICS
 
#define Q_ALIGNOF(x)
 
#define Q_DECL_ALIGN(n)
 
#define Q_DECL_NOTHROW   Q_DECL_NOEXCEPT
 
#define Q_CONSTEXPR   const
 
#define Q_DECL_CONSTEXPR
 
#define Q_DECL_RELAXED_CONSTEXPR
 
#define Q_NULLPTR   NULL
 
#define Q_RELAXED_CONSTEXPR   const
 
#define Q_DECL_NOEXCEPT
 
#define Q_DECL_ENUMERATOR_DEPRECATED   Q_DECL_DEPRECATED
 
#define Q_DECL_ENUMERATOR_DEPRECATED_X(x)
 
#define Q_DECL_CONSTEXPR_DTOR   inline
 
#define Q_CONSTEXPR_DTOR   const
 
#define Q_DECL_EQ_DELETE_X(reason)
 
#define Q_LIKELY_BRANCH
 
#define Q_UNLIKELY_BRANCH
 
#define Q_NORETURN
 
#define Q_LIKELY(x)
 
#define Q_UNLIKELY(x)
 
#define Q_ASSUME_IMPL(expr)
 
#define Q_UNREACHABLE_IMPL()
 
#define Q_ALLOC_SIZE(x)
 
#define Q_REQUIRED_RESULT
 
#define Q_NODISCARD_X(message)
 
#define Q_NODISCARD_CTOR
 
#define Q_NODISCARD_CTOR_X(message)
 
#define Q_DECL_DEPRECATED
 
#define Q_DECL_VARIABLE_DEPRECATED   Q_DECL_DEPRECATED
 
#define Q_DECL_DEPRECATED_X(text)
 
#define Q_DECL_EXPORT
 
#define Q_DECL_EXPORT_OVERRIDABLE   Q_DECL_EXPORT
 
#define Q_DECL_IMPORT
 
#define Q_DECL_HIDDEN
 
#define Q_DECL_UNUSED
 
#define Q_DECL_UNUSED_MEMBER
 
#define Q_FUNC_INFO   __FILE__ ":" QT_STRINGIFY(__LINE__)
 
#define Q_DECL_CF_RETURNS_RETAINED
 
#define Q_DECL_NS_RETURNS_AUTORELEASED
 
#define Q_DECL_PURE_FUNCTION
 
#define Q_DECL_CONST_FUNCTION   Q_DECL_PURE_FUNCTION
 
#define Q_DECL_COLD_FUNCTION
 
#define QT_MAKE_UNCHECKED_ARRAY_ITERATOR(x)
 
#define QT_MAKE_CHECKED_ARRAY_ITERATOR(x, N)
 
#define Q_WEAK_OVERLOAD   template <typename = void>
 
#define QT_POST_CXX17_API_IN_EXPORTED_CLASS   template <typename = void>
 
#define QT_DO_PRAGMA(text)
 
#define QT_WARNING_DISABLE_GCC(text)
 
#define QT_WARNING_PUSH
 
#define QT_WARNING_POP
 
#define QT_WARNING_DISABLE_INTEL(number)
 
#define QT_WARNING_DISABLE_MSVC(number)
 
#define QT_WARNING_DISABLE_CLANG(text)
 
#define QT_WARNING_DISABLE_GCC(text)
 
#define QT_WARNING_DISABLE_DEPRECATED
 
#define QT_WARNING_DISABLE_FLOAT_COMPARE
 
#define QT_WARNING_DISABLE_INVALID_OFFSETOF
 
#define QT_IGNORE_DEPRECATIONS(statement)
 
#define Q_CAST_IGNORE_ALIGN(body)
 
#define Q_OFFSETOF(Class, member)
 
#define qMove(x)
 
#define Q_FALLTHROUGH()
 
#define QT_FASTCALL
 
#define Q_ATTRIBUTE_FORMAT_PRINTF(A, B)
 
#define Q_NEVER_INLINE
 
#define Q_ALWAYS_INLINE   inline
 
#define Q_IMPLICIT
 

Macro Definition Documentation

◆ __has_attribute

#define __has_attribute ( x)
Value:
0

Definition at line 441 of file qcompilerdetection.h.

◆ __has_builtin

#define __has_builtin ( x)
Value:
0

Definition at line 435 of file qcompilerdetection.h.

◆ __has_cpp_attribute

#define __has_cpp_attribute ( x)
Value:
0

Definition at line 444 of file qcompilerdetection.h.

◆ __has_feature

#define __has_feature ( x)
Value:
0

Definition at line 438 of file qcompilerdetection.h.

◆ __has_include

#define __has_include ( x)
Value:
0

Definition at line 447 of file qcompilerdetection.h.

◆ __has_include_next

#define __has_include_next ( x)
Value:
0

Definition at line 450 of file qcompilerdetection.h.

◆ Q_ALIGNOF

#define Q_ALIGNOF ( x)
Value:
alignof(x)
GLint GLint GLint GLint GLint x
[0]

Definition at line 938 of file qcompilerdetection.h.

◆ Q_ALLOC_SIZE

#define Q_ALLOC_SIZE ( x)

Definition at line 1068 of file qcompilerdetection.h.

◆ Q_ALWAYS_INLINE

#define Q_ALWAYS_INLINE   inline

Definition at line 1360 of file qcompilerdetection.h.

◆ Q_ASSUME_IMPL

#define Q_ASSUME_IMPL ( expr)
Value:
void qt_noop(void)
Definition qtnoop.h:14

Definition at line 1062 of file qcompilerdetection.h.

◆ Q_ATTRIBUTE_FORMAT_PRINTF

#define Q_ATTRIBUTE_FORMAT_PRINTF ( A,
B )

Definition at line 1349 of file qcompilerdetection.h.

◆ Q_CAST_IGNORE_ALIGN

#define Q_CAST_IGNORE_ALIGN ( body)
Value:
#define QT_WARNING_POP
#define QT_WARNING_DISABLE_GCC(text)
#define QT_WARNING_PUSH

Definition at line 1230 of file qcompilerdetection.h.

◆ Q_COMPILER_THREADSAFE_STATICS

#define Q_COMPILER_THREADSAFE_STATICS

Definition at line 529 of file qcompilerdetection.h.

◆ Q_CONSTEXPR

#define Q_CONSTEXPR   const

Definition at line 954 of file qcompilerdetection.h.

◆ Q_CONSTEXPR_DTOR

#define Q_CONSTEXPR_DTOR   const

Definition at line 1022 of file qcompilerdetection.h.

◆ Q_DECL_ALIGN

#define Q_DECL_ALIGN ( n)
Value:
alignas(n)
GLfloat n
[4]

Definition at line 939 of file qcompilerdetection.h.

◆ Q_DECL_CF_RETURNS_RETAINED

#define Q_DECL_CF_RETURNS_RETAINED

Definition at line 1117 of file qcompilerdetection.h.

◆ Q_DECL_COLD_FUNCTION

#define Q_DECL_COLD_FUNCTION

Definition at line 1129 of file qcompilerdetection.h.

◆ Q_DECL_CONST_FUNCTION

#define Q_DECL_CONST_FUNCTION   Q_DECL_PURE_FUNCTION

Definition at line 1126 of file qcompilerdetection.h.

◆ Q_DECL_CONSTEXPR

#define Q_DECL_CONSTEXPR

Definition at line 955 of file qcompilerdetection.h.

◆ Q_DECL_CONSTEXPR_DTOR

#define Q_DECL_CONSTEXPR_DTOR   inline

Definition at line 1014 of file qcompilerdetection.h.

◆ Q_DECL_DEPRECATED

#define Q_DECL_DEPRECATED

Definition at line 1083 of file qcompilerdetection.h.

◆ Q_DECL_DEPRECATED_X

#define Q_DECL_DEPRECATED_X ( text)
Value:

Definition at line 1089 of file qcompilerdetection.h.

◆ Q_DECL_ENUMERATOR_DEPRECATED

#define Q_DECL_ENUMERATOR_DEPRECATED   Q_DECL_DEPRECATED

Definition at line 1007 of file qcompilerdetection.h.

◆ Q_DECL_ENUMERATOR_DEPRECATED_X

#define Q_DECL_ENUMERATOR_DEPRECATED_X ( x)
Value:
#define Q_DECL_DEPRECATED_X(text)

Definition at line 1008 of file qcompilerdetection.h.

◆ Q_DECL_EQ_DELETE_X

#define Q_DECL_EQ_DELETE_X ( reason)
Value:
= delete

Definition at line 1034 of file qcompilerdetection.h.

◆ Q_DECL_EXPORT

#define Q_DECL_EXPORT

Definition at line 1092 of file qcompilerdetection.h.

◆ Q_DECL_EXPORT_OVERRIDABLE

#define Q_DECL_EXPORT_OVERRIDABLE   Q_DECL_EXPORT

Definition at line 1095 of file qcompilerdetection.h.

◆ Q_DECL_HIDDEN

#define Q_DECL_HIDDEN

Definition at line 1101 of file qcompilerdetection.h.

◆ Q_DECL_IMPORT

#define Q_DECL_IMPORT

Definition at line 1098 of file qcompilerdetection.h.

◆ Q_DECL_NOEXCEPT

#define Q_DECL_NOEXCEPT

Definition at line 962 of file qcompilerdetection.h.

◆ Q_DECL_NOTHROW

#define Q_DECL_NOTHROW   Q_DECL_NOEXCEPT

Definition at line 940 of file qcompilerdetection.h.

◆ Q_DECL_NS_RETURNS_AUTORELEASED

#define Q_DECL_NS_RETURNS_AUTORELEASED

Definition at line 1120 of file qcompilerdetection.h.

◆ Q_DECL_PURE_FUNCTION

#define Q_DECL_PURE_FUNCTION

Definition at line 1123 of file qcompilerdetection.h.

◆ Q_DECL_RELAXED_CONSTEXPR

#define Q_DECL_RELAXED_CONSTEXPR

Definition at line 956 of file qcompilerdetection.h.

◆ Q_DECL_UNUSED

#define Q_DECL_UNUSED

Definition at line 1104 of file qcompilerdetection.h.

◆ Q_DECL_UNUSED_MEMBER

#define Q_DECL_UNUSED_MEMBER

Definition at line 1107 of file qcompilerdetection.h.

◆ Q_DECL_VARIABLE_DEPRECATED

#define Q_DECL_VARIABLE_DEPRECATED   Q_DECL_DEPRECATED

Definition at line 1086 of file qcompilerdetection.h.

◆ Q_FALLTHROUGH

#define Q_FALLTHROUGH ( )
Value:
(void)0
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void

Definition at line 1271 of file qcompilerdetection.h.

◆ Q_FUNC_INFO

#define Q_FUNC_INFO   __FILE__ ":" QT_STRINGIFY(__LINE__)

Definition at line 1113 of file qcompilerdetection.h.

◆ Q_IMPLICIT

#define Q_IMPLICIT

Definition at line 1377 of file qcompilerdetection.h.

◆ Q_LIKELY

#define Q_LIKELY ( x)
Value:
(x)

Definition at line 1056 of file qcompilerdetection.h.

◆ Q_LIKELY_BRANCH

#define Q_LIKELY_BRANCH

Definition at line 1043 of file qcompilerdetection.h.

◆ Q_NEVER_INLINE

#define Q_NEVER_INLINE

Definition at line 1359 of file qcompilerdetection.h.

◆ Q_NODISCARD_CTOR

#define Q_NODISCARD_CTOR

Definition at line 1077 of file qcompilerdetection.h.

◆ Q_NODISCARD_CTOR_X

#define Q_NODISCARD_CTOR_X ( message)
Value:

Definition at line 1080 of file qcompilerdetection.h.

◆ Q_NODISCARD_X

#define Q_NODISCARD_X ( message)
Value:

Definition at line 1074 of file qcompilerdetection.h.

◆ Q_NORETURN

#define Q_NORETURN

Definition at line 1053 of file qcompilerdetection.h.

◆ Q_NULLPTR

#define Q_NULLPTR   NULL

Definition at line 957 of file qcompilerdetection.h.

◆ Q_OFFSETOF

#define Q_OFFSETOF ( Class,
member )
Value:
[]() -> size_t { \
QT_WARNING_PUSH QT_WARNING_DISABLE_INVALID_OFFSETOF \
return offsetof(Class, member); \
}()

Definition at line 1236 of file qcompilerdetection.h.

◆ Q_RELAXED_CONSTEXPR

#define Q_RELAXED_CONSTEXPR   const

Definition at line 958 of file qcompilerdetection.h.

◆ Q_REQUIRED_RESULT

#define Q_REQUIRED_RESULT

Definition at line 1071 of file qcompilerdetection.h.

◆ Q_UNLIKELY

#define Q_UNLIKELY ( x)
Value:
(x)

Definition at line 1059 of file qcompilerdetection.h.

◆ Q_UNLIKELY_BRANCH

#define Q_UNLIKELY_BRANCH

Definition at line 1044 of file qcompilerdetection.h.

◆ Q_UNREACHABLE_IMPL

#define Q_UNREACHABLE_IMPL ( )
Value:

Definition at line 1065 of file qcompilerdetection.h.

◆ Q_WEAK_OVERLOAD

#define Q_WEAK_OVERLOAD   template <typename = void>

Definition at line 1143 of file qcompilerdetection.h.

◆ QCOMPILERDETECTION_H

#define QCOMPILERDETECTION_H

Definition at line 12 of file qcompilerdetection.h.

◆ qMove

#define qMove ( x)
Value:
(x)

Definition at line 1255 of file qcompilerdetection.h.

◆ QT_DO_PRAGMA

#define QT_DO_PRAGMA ( text)
Value:
_Pragma(#text)
QString text
[12]

Definition at line 1176 of file qcompilerdetection.h.

◆ QT_FASTCALL

#define QT_FASTCALL

Definition at line 1336 of file qcompilerdetection.h.

◆ QT_IGNORE_DEPRECATIONS

#define QT_IGNORE_DEPRECATIONS ( statement)
Value:
QT_WARNING_PUSH \
QT_WARNING_DISABLE_DEPRECATED \
statement \
QT_WARNING_POP

Definition at line 1222 of file qcompilerdetection.h.

◆ QT_MAKE_CHECKED_ARRAY_ITERATOR

#define QT_MAKE_CHECKED_ARRAY_ITERATOR ( x,
N )
Value:
(x)

Definition at line 1135 of file qcompilerdetection.h.

◆ QT_MAKE_UNCHECKED_ARRAY_ITERATOR

#define QT_MAKE_UNCHECKED_ARRAY_ITERATOR ( x)
Value:
(x)

Definition at line 1132 of file qcompilerdetection.h.

◆ QT_POST_CXX17_API_IN_EXPORTED_CLASS

#define QT_POST_CXX17_API_IN_EXPORTED_CLASS   template <typename = void>

Definition at line 1167 of file qcompilerdetection.h.

◆ QT_WARNING_DISABLE_CLANG

#define QT_WARNING_DISABLE_CLANG ( text)

Definition at line 1214 of file qcompilerdetection.h.

◆ QT_WARNING_DISABLE_DEPRECATED

#define QT_WARNING_DISABLE_DEPRECATED

Definition at line 1216 of file qcompilerdetection.h.

◆ QT_WARNING_DISABLE_FLOAT_COMPARE

#define QT_WARNING_DISABLE_FLOAT_COMPARE

Definition at line 1217 of file qcompilerdetection.h.

◆ QT_WARNING_DISABLE_GCC [1/2]

#define QT_WARNING_DISABLE_GCC ( text)

Definition at line 1209 of file qcompilerdetection.h.

◆ QT_WARNING_DISABLE_GCC [2/2]

#define QT_WARNING_DISABLE_GCC ( text)

Definition at line 1209 of file qcompilerdetection.h.

◆ QT_WARNING_DISABLE_INTEL

#define QT_WARNING_DISABLE_INTEL ( number)

Definition at line 1212 of file qcompilerdetection.h.

◆ QT_WARNING_DISABLE_INVALID_OFFSETOF

#define QT_WARNING_DISABLE_INVALID_OFFSETOF

Definition at line 1218 of file qcompilerdetection.h.

◆ QT_WARNING_DISABLE_MSVC

#define QT_WARNING_DISABLE_MSVC ( number)

Definition at line 1213 of file qcompilerdetection.h.

◆ QT_WARNING_POP

#define QT_WARNING_POP

Definition at line 1211 of file qcompilerdetection.h.

◆ QT_WARNING_PUSH

#define QT_WARNING_PUSH

Definition at line 1210 of file qcompilerdetection.h.