Features: Add cxx_noexcept.
This commit is contained in:
parent
bd2a025eb0
commit
8149fc909f
@ -62,6 +62,11 @@ The features known to this version of CMake are:
|
||||
|
||||
.. _N2927: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2927.pdf
|
||||
|
||||
``cxx_noexcept``
|
||||
Exception specifications, as defined in N3050_.
|
||||
|
||||
.. _N3050: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3050.html
|
||||
|
||||
``cxx_nonstatic_member_init``
|
||||
Non-static data member initialization, as defined in N2756.
|
||||
|
||||
|
@ -8,6 +8,7 @@ set(_cmake_feature_test_cxx_inheriting_constructors "${GNU48_CXX11}")
|
||||
set(GNU47_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
|
||||
set(_cmake_feature_test_cxx_delegating_constructors "${GNU47_CXX11}")
|
||||
set(_cmake_feature_test_cxx_final "${GNU47_CXX11}")
|
||||
set(_cmake_feature_test_cxx_noexcept "${GNU47_CXX11}")
|
||||
set(_cmake_feature_test_cxx_nonstatic_member_init "${GNU47_CXX11}")
|
||||
set(_cmake_feature_test_cxx_override "${GNU47_CXX11}")
|
||||
# NOTE: C++11 was ratified in September 2011. GNU 4.7 is the first minor
|
||||
|
@ -52,6 +52,7 @@
|
||||
F(cxx_final) \
|
||||
F(cxx_inheriting_constructors) \
|
||||
F(cxx_lambdas) \
|
||||
F(cxx_noexcept) \
|
||||
F(cxx_nonstatic_member_init) \
|
||||
F(cxx_override) \
|
||||
F(cxx_static_assert) \
|
||||
|
5
Tests/CompileFeatures/cxx_noexcept.cpp
Normal file
5
Tests/CompileFeatures/cxx_noexcept.cpp
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
void someFunc() noexcept
|
||||
{
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user