summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdebug.h
diff options
context:
space:
mode:
authorRym Bouabid <rym.bouabid@qt.io>2024-07-11 12:53:38 +0200
committerRym Bouabid <rym.bouabid@qt.io>2024-08-10 19:00:14 +0200
commit8fa8c574c04ea4f82d7675d5be5b9808c0b8f7b6 (patch)
treef9565e8c3b2389e0f4cbfcb20521a24c40ecf865 /src/corelib/io/qdebug.h
parent94f87d6d65f42140dbf58b8c6badd1a4c61c8c76 (diff)
qcompilerdetection.h: Introduce Q_CONSTEXPR_DTOR macro for variables
Add this macro to declare constexpr variables that have destructors marked with Q_DECL_CONSTEXPR_DTOR. Declare variables using the new Q_CONSTEXPR_DTOR macro instead of Q_DECL_CONSTEXPR_DTOR in syntax tests. Move the declarations inside the functions as Q_DECL_CONSTEXPR_DTOR could only be used to declare non-local variables. [ChangeLog][QtCore] Introduced Q_CONSTEXPR_DTOR for variables, which resolves to constexpr when __cpp_constexpr >= 201907L, otherwise it resolves to const. Task-number: QTBUG-124462 Change-Id: I06cd99bb956d9af560e92c326a7c82aa4c8852d1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qdebug.h')
0 files changed, 0 insertions, 0 deletions