diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-06-13 15:23:12 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-29 00:27:18 +0200 |
commit | 4182a3afac5321b21496ae276446e3ba46d29fd4 (patch) | |
tree | b3aa9256e472416e3c06c16389574947ad166b5d /tests/auto/corelib/global/qlogging | |
parent | 2b904294a87b303d4f1df03f92dd2c259ff53f00 (diff) |
Add detection for C++11 noexcept
The Q_COMPILER_NOEXCEPT feature indicates whether this compiler has
support for noexcept. Note that the GCC C++11 status page does not
list this feature, but investigation into the source code as well as
testing reveals it's supported since GCC 4.6.
Also add Q_DECL_NOEXCEPT, to be used to declare that a function throws
no exceptions, and Q_DECL_NOEXCEPT_EXPR(x), which declares that the
function throws no exceptions if x evaluates to true. In C++98 mode,
these macros expand to empty -- the old C++98 and C++03 exception
specification is deprecated and considered harmful.
Change-Id: Ic84901d13eceb06dcc7f025a4b7fc8b250769be9
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/corelib/global/qlogging')
0 files changed, 0 insertions, 0 deletions