[libcxx-commits] [pstl] r358121 - Fix header inclusion order failures

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 10 11:52:24 PDT 2019


Author: ldionne
Date: Wed Apr 10 11:52:24 2019
New Revision: 358121

URL: http://llvm.org/viewvc/llvm-project?rev=358121&view=rev
Log:
Fix header inclusion order failures

Summary: See https://bugs.llvm.org/show_bug.cgi?id=41432

Subscribers: libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D60525

Added:
    pstl/trunk/test/pstl/
    pstl/trunk/test/pstl/header_inclusion_order_algorithm_0.pass.cpp
    pstl/trunk/test/pstl/header_inclusion_order_algorithm_1.pass.cpp
    pstl/trunk/test/pstl/header_inclusion_order_memory_0.pass.cpp
    pstl/trunk/test/pstl/header_inclusion_order_memory_1.pass.cpp
    pstl/trunk/test/pstl/header_inclusion_order_numeric_0.pass.cpp
    pstl/trunk/test/pstl/header_inclusion_order_numeric_1.pass.cpp
Modified:
    pstl/trunk/include/pstl/internal/glue_algorithm_defs.h
    pstl/trunk/include/pstl/internal/glue_algorithm_impl.h
    pstl/trunk/include/pstl/internal/glue_memory_impl.h
    pstl/trunk/include/pstl/internal/glue_numeric_defs.h
    pstl/trunk/include/pstl/internal/glue_numeric_impl.h

Modified: pstl/trunk/include/pstl/internal/glue_algorithm_defs.h
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/include/pstl/internal/glue_algorithm_defs.h?rev=358121&r1=358120&r2=358121&view=diff
==============================================================================
--- pstl/trunk/include/pstl/internal/glue_algorithm_defs.h (original)
+++ pstl/trunk/include/pstl/internal/glue_algorithm_defs.h Wed Apr 10 11:52:24 2019
@@ -11,6 +11,7 @@
 #define __PSTL_glue_algorithm_defs_H
 
 #include <functional>
+#include <iterator>
 
 #include "execution_defs.h"
 

Modified: pstl/trunk/include/pstl/internal/glue_algorithm_impl.h
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/include/pstl/internal/glue_algorithm_impl.h?rev=358121&r1=358120&r2=358121&view=diff
==============================================================================
--- pstl/trunk/include/pstl/internal/glue_algorithm_impl.h (original)
+++ pstl/trunk/include/pstl/internal/glue_algorithm_impl.h Wed Apr 10 11:52:24 2019
@@ -17,6 +17,8 @@
 #include "algorithm_fwd.h"
 #include "numeric_fwd.h" /* count and count_if use __pattern_transform_reduce */
 
+#include "execution_impl.h"
+
 namespace std
 {
 

Modified: pstl/trunk/include/pstl/internal/glue_memory_impl.h
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/include/pstl/internal/glue_memory_impl.h?rev=358121&r1=358120&r2=358121&view=diff
==============================================================================
--- pstl/trunk/include/pstl/internal/glue_memory_impl.h (original)
+++ pstl/trunk/include/pstl/internal/glue_memory_impl.h Wed Apr 10 11:52:24 2019
@@ -10,9 +10,12 @@
 #ifndef __PSTL_glue_memory_impl_H
 #define __PSTL_glue_memory_impl_H
 
+#include "execution_defs.h"
 #include "utils.h"
 #include "algorithm_fwd.h"
 
+#include "execution_impl.h"
+
 namespace std
 {
 

Modified: pstl/trunk/include/pstl/internal/glue_numeric_defs.h
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/include/pstl/internal/glue_numeric_defs.h?rev=358121&r1=358120&r2=358121&view=diff
==============================================================================
--- pstl/trunk/include/pstl/internal/glue_numeric_defs.h (original)
+++ pstl/trunk/include/pstl/internal/glue_numeric_defs.h Wed Apr 10 11:52:24 2019
@@ -10,6 +10,8 @@
 #ifndef __PSTL_glue_numeric_defs_H
 #define __PSTL_glue_numeric_defs_H
 
+#include <iterator>
+
 #include "execution_defs.h"
 
 namespace std

Modified: pstl/trunk/include/pstl/internal/glue_numeric_impl.h
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/include/pstl/internal/glue_numeric_impl.h?rev=358121&r1=358120&r2=358121&view=diff
==============================================================================
--- pstl/trunk/include/pstl/internal/glue_numeric_impl.h (original)
+++ pstl/trunk/include/pstl/internal/glue_numeric_impl.h Wed Apr 10 11:52:24 2019
@@ -14,6 +14,7 @@
 
 #include "utils.h"
 #include "numeric_fwd.h"
+#include "execution_impl.h"
 
 namespace std
 {

Added: pstl/trunk/test/pstl/header_inclusion_order_algorithm_0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/test/pstl/header_inclusion_order_algorithm_0.pass.cpp?rev=358121&view=auto
==============================================================================
--- pstl/trunk/test/pstl/header_inclusion_order_algorithm_0.pass.cpp (added)
+++ pstl/trunk/test/pstl/header_inclusion_order_algorithm_0.pass.cpp Wed Apr 10 11:52:24 2019
@@ -0,0 +1,24 @@
+// -*- C++ -*-
+//===-- header_inclusion_order_algorithm_0.pass.cpp -----------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "support/pstl_test_config.h"
+
+#ifdef PSTL_STANDALONE_TESTS
+#include "pstl/execution"
+#include "pstl/algorithm"
+#else
+#include <execution>
+#include <algorithm>
+#endif // PSTL_STANDALONE_TESTS
+
+int32_t
+main()
+{
+    return 0;
+}

Added: pstl/trunk/test/pstl/header_inclusion_order_algorithm_1.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/test/pstl/header_inclusion_order_algorithm_1.pass.cpp?rev=358121&view=auto
==============================================================================
--- pstl/trunk/test/pstl/header_inclusion_order_algorithm_1.pass.cpp (added)
+++ pstl/trunk/test/pstl/header_inclusion_order_algorithm_1.pass.cpp Wed Apr 10 11:52:24 2019
@@ -0,0 +1,24 @@
+// -*- C++ -*-
+//===-- header_inclusion_order_algorithm_1.pass.cpp -----------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "support/pstl_test_config.h"
+
+#ifdef PSTL_STANDALONE_TESTS
+#include "pstl/algorithm"
+#include "pstl/execution"
+#else
+#include <algorithm>
+#include <execution>
+#endif // PSTL_STANDALONE_TESTS
+
+int32_t
+main()
+{
+    return 0;
+}

Added: pstl/trunk/test/pstl/header_inclusion_order_memory_0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/test/pstl/header_inclusion_order_memory_0.pass.cpp?rev=358121&view=auto
==============================================================================
--- pstl/trunk/test/pstl/header_inclusion_order_memory_0.pass.cpp (added)
+++ pstl/trunk/test/pstl/header_inclusion_order_memory_0.pass.cpp Wed Apr 10 11:52:24 2019
@@ -0,0 +1,24 @@
+// -*- C++ -*-
+//===-- header_inclusion_order_memory_0.pass.cpp --------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "support/pstl_test_config.h"
+
+#ifdef PSTL_STANDALONE_TESTS
+#include "pstl/execution"
+#include "pstl/memory"
+#else
+#include <execution>
+#include <memory>
+#endif // PSTL_STANDALONE_TESTS
+
+int32_t
+main()
+{
+    return 0;
+}

Added: pstl/trunk/test/pstl/header_inclusion_order_memory_1.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/test/pstl/header_inclusion_order_memory_1.pass.cpp?rev=358121&view=auto
==============================================================================
--- pstl/trunk/test/pstl/header_inclusion_order_memory_1.pass.cpp (added)
+++ pstl/trunk/test/pstl/header_inclusion_order_memory_1.pass.cpp Wed Apr 10 11:52:24 2019
@@ -0,0 +1,24 @@
+// -*- C++ -*-
+//===-- header_inclusion_order_memory_1.pass.cpp --------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "support/pstl_test_config.h"
+
+#ifdef PSTL_STANDALONE_TESTS
+#include "pstl/memory"
+#include "pstl/execution"
+#else
+#include <memory>
+#include <execution>
+#endif // PSTL_STANDALONE_TESTS
+
+int32_t
+main()
+{
+    return 0;
+}

Added: pstl/trunk/test/pstl/header_inclusion_order_numeric_0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/test/pstl/header_inclusion_order_numeric_0.pass.cpp?rev=358121&view=auto
==============================================================================
--- pstl/trunk/test/pstl/header_inclusion_order_numeric_0.pass.cpp (added)
+++ pstl/trunk/test/pstl/header_inclusion_order_numeric_0.pass.cpp Wed Apr 10 11:52:24 2019
@@ -0,0 +1,24 @@
+// -*- C++ -*-
+//===-- header_inclusion_order_numeric_0.pass.cpp -------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "support/pstl_test_config.h"
+
+#ifdef PSTL_STANDALONE_TESTS
+#include "pstl/execution"
+#include "pstl/numeric"
+#else
+#include <execution>
+#include <numeric>
+#endif // PSTL_STANDALONE_TESTS
+
+int32_t
+main()
+{
+    return 0;
+}

Added: pstl/trunk/test/pstl/header_inclusion_order_numeric_1.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/test/pstl/header_inclusion_order_numeric_1.pass.cpp?rev=358121&view=auto
==============================================================================
--- pstl/trunk/test/pstl/header_inclusion_order_numeric_1.pass.cpp (added)
+++ pstl/trunk/test/pstl/header_inclusion_order_numeric_1.pass.cpp Wed Apr 10 11:52:24 2019
@@ -0,0 +1,24 @@
+// -*- C++ -*-
+//===-- header_inclusion_order_numeric_0.pass.cpp -------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "support/pstl_test_config.h"
+
+#ifdef PSTL_STANDALONE_TESTS
+#include "pstl/numeric"
+#include "pstl/execution"
+#else
+#include <numeric>
+#include <execution>
+#endif // PSTL_STANDALONE_TESTS
+
+int32_t
+main()
+{
+    return 0;
+}




More information about the libcxx-commits mailing list