[Cmake-commits] CMake branch, next, updated. v3.0.0-rc3-1876-g238a709

Stephen Kelly steveire at gmail.com
Fri Apr 4 05:07:58 EDT 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  238a7095a86fec3b4461091c8bca314868fde273 (commit)
       via  e977281b9f3bf97120c0428314bb2564bdf02b66 (commit)
       via  2eeb4c423fc949ae7ceae1848ecf71cb91240be2 (commit)
       via  a9c46a28f63f6dd0c35b89b16b3b8dcd900a532e (commit)
       via  44fee553f5e7bccbcc0a8e393ce7bd8910baa5d8 (commit)
       via  8b3014339b40fd3fe04818052e6a7d494e34528f (commit)
       via  aa689a966731c73546561d5d17e9577b6b870b93 (commit)
       via  295ed36511e2dfbee1978f4a97cdea8f01271e9d (commit)
      from  f50de9013022810e810f43c11505c69458f00189 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=238a7095a86fec3b4461091c8bca314868fde273
commit 238a7095a86fec3b4461091c8bca314868fde273
Merge: f50de90 e977281
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Apr 4 05:07:56 2014 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri Apr 4 05:07:56 2014 -0400

    Merge topic 'cxx11-features' into next
    
    e977281b Features: Add cxx_unrestricted_unions.
    2eeb4c42 Features: Add cxx_unicode_literals.
    a9c46a28 Features: Add cxx_user_literals.
    44fee553 Features: Add cxx_alias_templates.
    8b301433 Features: Add cxx_rvalue_references.
    aa689a96 Features: Add cxx_reference_qualified_functions.
    295ed365 Features: Add cxx_raw_string_literals.


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e977281b9f3bf97120c0428314bb2564bdf02b66
commit e977281b9f3bf97120c0428314bb2564bdf02b66
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Apr 4 11:06:02 2014 +0200
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Fri Apr 4 11:06:02 2014 +0200

    Features: Add cxx_unrestricted_unions.

diff --git a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
index 8ecf667..624308c 100644
--- a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
+++ b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
@@ -136,3 +136,8 @@ The features known to this version of CMake are:
   Unicode string literals, as defined in N2442_.
 
 .. _N2442: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm
+
+``cxx_unrestricted_unions``
+  Unrestricted unions, as defined in N2544_.
+
+.. _N2544: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2544.pdf
diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
index 73e0619..07e344c 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -17,6 +17,7 @@ set(GNU46_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
 set(_cmake_feature_test_cxx_constexpr "${GNU46_CXX11}")
 set(_cmake_feature_test_cxx_nullptr "${GNU46_CXX11}")
 set(_cmake_feature_test_cxx_range_for "${GNU46_CXX11}")
+set(_cmake_feature_test_cxx_unrestricted_unions "${GNU46_CXX11}")
 # TODO: Should be supported by GNU 4.5
 set(GNU45_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
 set(_cmake_feature_test_cxx_explicit_conversions "${GNU45_CXX11}")
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index fb8b977..a094d68 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -66,7 +66,8 @@
   F(cxx_rvalue_references) \
   F(cxx_alias_templates) \
   F(cxx_user_literals) \
-  F(cxx_unicode_literals)
+  F(cxx_unicode_literals) \
+  F(cxx_unrestricted_unions)
 
 class cmMakefile::Internals
 {
diff --git a/Tests/CompileFeatures/cxx_unrestricted_unions.cpp b/Tests/CompileFeatures/cxx_unrestricted_unions.cpp
new file mode 100644
index 0000000..698fd61
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_unrestricted_unions.cpp
@@ -0,0 +1,11 @@
+
+struct point {
+  point() {}
+  point(int x, int y) : x_(x), y_(y) {}
+  int x_, y_;
+};
+union u {
+  point p_;
+  int i_;
+  const char* s_;
+};

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2eeb4c423fc949ae7ceae1848ecf71cb91240be2
commit 2eeb4c423fc949ae7ceae1848ecf71cb91240be2
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Apr 4 10:59:22 2014 +0200
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Fri Apr 4 11:01:46 2014 +0200

    Features: Add cxx_unicode_literals.

diff --git a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
index 861d758..8ecf667 100644
--- a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
+++ b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
@@ -131,3 +131,8 @@ The features known to this version of CMake are:
   User-defined literals, as defined in N2765_.
 
 .. _N2765: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2765.pdf
+
+``cxx_unicode_literals``
+  Unicode string literals, as defined in N2442_.
+
+.. _N2442: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm
diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
index bce8d8c..73e0619 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -31,6 +31,7 @@ set(_cmake_feature_test_cxx_auto_type "${GNU44_CXX11}")
 set(_cmake_feature_test_cxx_strong_enums "${GNU44_CXX11}")
 set(_cmake_feature_test_cxx_defaulted_functions "${GNU44_CXX11}")
 set(_cmake_feature_test_cxx_deleted_functions "${GNU44_CXX11}")
+set(_cmake_feature_test_cxx_unicode_literals "${GNU44_CXX11}")
 # TODO: Should be supported by GNU 4.3
 set(GNU43_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
 set(_cmake_feature_test_cxx_static_assert "${GNU43_CXX11}")
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 3c00640..fb8b977 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -65,7 +65,8 @@
   F(cxx_reference_qualified_functions) \
   F(cxx_rvalue_references) \
   F(cxx_alias_templates) \
-  F(cxx_user_literals)
+  F(cxx_user_literals) \
+  F(cxx_unicode_literals)
 
 class cmMakefile::Internals
 {
diff --git a/Tests/CompileFeatures/cxx_unicode_literals.cpp b/Tests/CompileFeatures/cxx_unicode_literals.cpp
new file mode 100644
index 0000000..a7b7df0
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_unicode_literals.cpp
@@ -0,0 +1,3 @@
+
+const char16_t lit_16[] = u"\u00DA";
+const char32_t lit_32[] = U"\u00DA";

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a9c46a28f63f6dd0c35b89b16b3b8dcd900a532e
commit a9c46a28f63f6dd0c35b89b16b3b8dcd900a532e
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Apr 4 10:56:09 2014 +0200
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Fri Apr 4 10:57:17 2014 +0200

    Features: Add cxx_user_literals.

diff --git a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
index 99cb85d..861d758 100644
--- a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
+++ b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
@@ -126,3 +126,8 @@ The features known to this version of CMake are:
   Template aliases, as defined in N2258_.
 
 .. _N2258: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2258.pdf
+
+``cxx_user_literals``
+  User-defined literals, as defined in N2765_.
+
+.. _N2765: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2765.pdf
diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
index e90e84c..bce8d8c 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -11,6 +11,7 @@ set(_cmake_feature_test_cxx_override "${GNU47_CXX11}")
 set(_cmake_feature_test_cxx_nonstatic_member_init "${GNU47_CXX11}")
 set(_cmake_feature_test_cxx_noexcept "${GNU47_CXX11}")
 set(_cmake_feature_test_cxx_alias_templates "${GNU47_CXX11}")
+set(_cmake_feature_test_cxx_user_literals "${GNU47_CXX11}")
 # TODO: Should be supported by GNU 4.6
 set(GNU46_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
 set(_cmake_feature_test_cxx_constexpr "${GNU46_CXX11}")
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index a2fe852..3c00640 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -64,7 +64,8 @@
   F(cxx_raw_string_literals) \
   F(cxx_reference_qualified_functions) \
   F(cxx_rvalue_references) \
-  F(cxx_alias_templates)
+  F(cxx_alias_templates) \
+  F(cxx_user_literals)
 
 class cmMakefile::Internals
 {
diff --git a/Tests/CompileFeatures/cxx_user_literals.cpp b/Tests/CompileFeatures/cxx_user_literals.cpp
new file mode 100644
index 0000000..9e5a588
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_user_literals.cpp
@@ -0,0 +1,7 @@
+
+long double operator "" _meters(long double);
+
+void someFunc()
+{
+  long double i = 1.2_meters;
+}

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=44fee553f5e7bccbcc0a8e393ce7bd8910baa5d8
commit 44fee553f5e7bccbcc0a8e393ce7bd8910baa5d8
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Apr 4 10:50:41 2014 +0200
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Fri Apr 4 10:51:35 2014 +0200

    Features: Add cxx_alias_templates.

diff --git a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
index 4230e52..99cb85d 100644
--- a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
+++ b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
@@ -121,3 +121,8 @@ The features known to this version of CMake are:
   R-value references, as defined in N2118_.
 
 .. _N2118: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html
+
+``cxx_alias_templates``
+  Template aliases, as defined in N2258_.
+
+.. _N2258: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2258.pdf
diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
index 89619bb..e90e84c 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -10,6 +10,7 @@ set(_cmake_feature_test_cxx_final "${GNU47_CXX11}")
 set(_cmake_feature_test_cxx_override "${GNU47_CXX11}")
 set(_cmake_feature_test_cxx_nonstatic_member_init "${GNU47_CXX11}")
 set(_cmake_feature_test_cxx_noexcept "${GNU47_CXX11}")
+set(_cmake_feature_test_cxx_alias_templates "${GNU47_CXX11}")
 # TODO: Should be supported by GNU 4.6
 set(GNU46_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
 set(_cmake_feature_test_cxx_constexpr "${GNU46_CXX11}")
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index c2d6a5e..a2fe852 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -63,7 +63,8 @@
   F(cxx_range_for) \
   F(cxx_raw_string_literals) \
   F(cxx_reference_qualified_functions) \
-  F(cxx_rvalue_references)
+  F(cxx_rvalue_references) \
+  F(cxx_alias_templates)
 
 class cmMakefile::Internals
 {
diff --git a/Tests/CompileFeatures/cxx_alias_templates.cpp b/Tests/CompileFeatures/cxx_alias_templates.cpp
new file mode 100644
index 0000000..a47e27d
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_alias_templates.cpp
@@ -0,0 +1,11 @@
+
+template <typename T1, typename T2>
+struct A
+{
+  typedef T1 MyT1;
+  using MyT2 = T2;
+};
+
+using B = A<int, char>;
+template<typename T>
+using C = A<int, T>;

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8b3014339b40fd3fe04818052e6a7d494e34528f
commit 8b3014339b40fd3fe04818052e6a7d494e34528f
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Apr 4 09:39:40 2014 +0200
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Fri Apr 4 09:39:40 2014 +0200

    Features: Add cxx_rvalue_references.

diff --git a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
index a49e66d..4230e52 100644
--- a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
+++ b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
@@ -116,3 +116,8 @@ The features known to this version of CMake are:
   Reference qualified functions, as defined in N2439_.
 
 .. _N2439: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2439.htm
+
+``cxx_rvalue_references``
+  R-value references, as defined in N2118_.
+
+.. _N2118: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html
diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
index 7425b11..89619bb 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -33,4 +33,5 @@ set(_cmake_feature_test_cxx_deleted_functions "${GNU44_CXX11}")
 set(GNU43_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
 set(_cmake_feature_test_cxx_static_assert "${GNU43_CXX11}")
 set(_cmake_feature_test_cxx_decltype "${GNU43_CXX11}")
+set(_cmake_feature_test_cxx_rvalue_references "${GNU43_CXX11}")
 set(_oldestSupported)
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 1a0f1db..c2d6a5e 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -62,7 +62,8 @@
   F(cxx_nullptr) \
   F(cxx_range_for) \
   F(cxx_raw_string_literals) \
-  F(cxx_reference_qualified_functions)
+  F(cxx_reference_qualified_functions) \
+  F(cxx_rvalue_references)
 
 class cmMakefile::Internals
 {
diff --git a/Tests/CompileFeatures/cxx_rvalue_references.cpp b/Tests/CompileFeatures/cxx_rvalue_references.cpp
new file mode 100644
index 0000000..787026a
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_rvalue_references.cpp
@@ -0,0 +1,5 @@
+
+void someFunc(int&&)
+{
+
+}

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=aa689a966731c73546561d5d17e9577b6b870b93
commit aa689a966731c73546561d5d17e9577b6b870b93
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Apr 4 09:25:46 2014 +0200
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Fri Apr 4 09:33:23 2014 +0200

    Features: Add cxx_reference_qualified_functions.

diff --git a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
index 792699b..a49e66d 100644
--- a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
+++ b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
@@ -111,3 +111,8 @@ The features known to this version of CMake are:
   Raw string literals, as defined in N2442_.
 
 .. _N2442: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm
+
+``cxx_reference_qualified_functions``
+  Reference qualified functions, as defined in N2439_.
+
+.. _N2439: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2439.htm
diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
index 8a2489a..7425b11 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -1,5 +1,8 @@
 
 set(_oldestSupported "(__GNUC__ * 100 + __GNUC_MINOR__) >= 408")
+# Introduced in GCC 4.8.1
+set(_cmake_feature_test_cxx_reference_qualified_functions
+  "((__GNUC__ * 100 + __GNUC_MINOR__) > 408 || __GNUC_PATCHLEVEL__ >= 1) && __cplusplus >= 201103L")
 # TODO: Should be supported by GNU 4.7
 set(GNU47_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
 set(_cmake_feature_test_cxx_delegating_constructors "${GNU47_CXX11}")
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 130ed3d..1a0f1db 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -61,7 +61,8 @@
   F(cxx_noexcept) \
   F(cxx_nullptr) \
   F(cxx_range_for) \
-  F(cxx_raw_string_literals)
+  F(cxx_raw_string_literals) \
+  F(cxx_reference_qualified_functions)
 
 class cmMakefile::Internals
 {
diff --git a/Tests/CompileFeatures/cxx_reference_qualified_functions.cpp b/Tests/CompileFeatures/cxx_reference_qualified_functions.cpp
new file mode 100644
index 0000000..ce69892
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_reference_qualified_functions.cpp
@@ -0,0 +1,11 @@
+
+struct test{
+  void f() & { }
+  void f() && { }
+};
+
+int someFunc(){
+  test t;
+  t.f(); // lvalue
+  test().f(); // rvalue
+}

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=295ed36511e2dfbee1978f4a97cdea8f01271e9d
commit 295ed36511e2dfbee1978f4a97cdea8f01271e9d
Author:     Stephen Kelly <steveire at gmail.com>
AuthorDate: Fri Apr 4 09:15:18 2014 +0200
Commit:     Stephen Kelly <steveire at gmail.com>
CommitDate: Fri Apr 4 09:33:23 2014 +0200

    Features: Add cxx_raw_string_literals.

diff --git a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
index e0c7f19..792699b 100644
--- a/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
+++ b/Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst
@@ -106,3 +106,8 @@ The features known to this version of CMake are:
   Range-based for, as defined in N2930_.
 
 .. _N2930: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2930.html
+
+``cxx_raw_string_literals``
+  Raw string literals, as defined in N2442_.
+
+.. _N2442: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm
diff --git a/Modules/Compiler/GNU-CXX-FeatureTests.cmake b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
index d786771..8a2489a 100644
--- a/Modules/Compiler/GNU-CXX-FeatureTests.cmake
+++ b/Modules/Compiler/GNU-CXX-FeatureTests.cmake
@@ -17,6 +17,7 @@ set(GNU45_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
 set(_cmake_feature_test_cxx_explicit_conversions "${GNU45_CXX11}")
 set(_cmake_feature_test_cxx_inheriting_constructors "${GNU45_CXX11}")
 set(_cmake_feature_test_cxx_lambdas "${GNU45_CXX11}")
+set(_cmake_feature_test_cxx_raw_string_literals "${GNU45_CXX11}")
 # TODO: Should be supported by GNU 4.4
 set(GNU44_CXX11 "${_oldestSupported} && __cplusplus >= 201103L")
 set(_cmake_feature_test_cxx_variadic_templates "${GNU44_CXX11}")
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 1232981..130ed3d 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -60,7 +60,8 @@
   F(cxx_nonstatic_member_init) \
   F(cxx_noexcept) \
   F(cxx_nullptr) \
-  F(cxx_range_for)
+  F(cxx_range_for) \
+  F(cxx_raw_string_literals)
 
 class cmMakefile::Internals
 {
diff --git a/Tests/CompileFeatures/cxx_raw_string_literals.cpp b/Tests/CompileFeatures/cxx_raw_string_literals.cpp
new file mode 100644
index 0000000..ea4d231
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_raw_string_literals.cpp
@@ -0,0 +1,7 @@
+
+void someFunc()
+{
+const char p[] = R"(a\
+b
+c)";
+}

-----------------------------------------------------------------------

Summary of changes:
 Help/variable/CMAKE_CXX_KNOWN_FEATURES.rst         |   35 ++++++++++++++++++++
 Modules/Compiler/GNU-CXX-FeatureTests.cmake        |    9 +++++
 Source/cmMakefile.cxx                              |    9 ++++-
 Tests/CompileFeatures/cxx_alias_templates.cpp      |   11 ++++++
 Tests/CompileFeatures/cxx_raw_string_literals.cpp  |    7 ++++
 .../cxx_reference_qualified_functions.cpp          |   11 ++++++
 Tests/CompileFeatures/cxx_rvalue_references.cpp    |    5 +++
 Tests/CompileFeatures/cxx_unicode_literals.cpp     |    3 ++
 Tests/CompileFeatures/cxx_unrestricted_unions.cpp  |   11 ++++++
 Tests/CompileFeatures/cxx_user_literals.cpp        |    7 ++++
 10 files changed, 107 insertions(+), 1 deletion(-)
 create mode 100644 Tests/CompileFeatures/cxx_alias_templates.cpp
 create mode 100644 Tests/CompileFeatures/cxx_raw_string_literals.cpp
 create mode 100644 Tests/CompileFeatures/cxx_reference_qualified_functions.cpp
 create mode 100644 Tests/CompileFeatures/cxx_rvalue_references.cpp
 create mode 100644 Tests/CompileFeatures/cxx_unicode_literals.cpp
 create mode 100644 Tests/CompileFeatures/cxx_unrestricted_unions.cpp
 create mode 100644 Tests/CompileFeatures/cxx_user_literals.cpp


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list