diff --git a/libcxx/cmake/Modules/HandleLibCXXABI.cmake b/libcxx/cmake/Modules/HandleLibCXXABI.cmake --- a/libcxx/cmake/Modules/HandleLibCXXABI.cmake +++ b/libcxx/cmake/Modules/HandleLibCXXABI.cmake @@ -117,7 +117,7 @@ setup_abi_lib( "-DLIBCXX_BUILDING_LIBCXXABI" - "${shared}" "${static}" "cxxabi.h;__cxxabi_config.h" "") + "${shared}" "${static}" "cxxabi.h;__cxxabi_config.h;threading_support.h" "") elseif ("${LIBCXX_CXX_ABI_LIBNAME}" STREQUAL "libcxxrt") if(NOT LIBCXX_CXX_ABI_INCLUDE_PATHS) set(LIBCXX_CXX_ABI_INCLUDE_PATHS "/usr/include/c++/v1") diff --git a/libcxx/include/__algorithm/adjacent_find.h b/libcxx/include/__algorithm/adjacent_find.h --- a/libcxx/include/__algorithm/adjacent_find.h +++ b/libcxx/include/__algorithm/adjacent_find.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/all_of.h b/libcxx/include/__algorithm/all_of.h --- a/libcxx/include/__algorithm/all_of.h +++ b/libcxx/include/__algorithm/all_of.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/any_of.h b/libcxx/include/__algorithm/any_of.h --- a/libcxx/include/__algorithm/any_of.h +++ b/libcxx/include/__algorithm/any_of.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/binary_search.h b/libcxx/include/__algorithm/binary_search.h --- a/libcxx/include/__algorithm/binary_search.h +++ b/libcxx/include/__algorithm/binary_search.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/clamp.h b/libcxx/include/__algorithm/clamp.h --- a/libcxx/include/__algorithm/clamp.h +++ b/libcxx/include/__algorithm/clamp.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/comp.h b/libcxx/include/__algorithm/comp.h --- a/libcxx/include/__algorithm/comp.h +++ b/libcxx/include/__algorithm/comp.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/comp_ref_type.h b/libcxx/include/__algorithm/comp_ref_type.h --- a/libcxx/include/__algorithm/comp_ref_type.h +++ b/libcxx/include/__algorithm/comp_ref_type.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/copy.h b/libcxx/include/__algorithm/copy.h --- a/libcxx/include/__algorithm/copy.h +++ b/libcxx/include/__algorithm/copy.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/copy_backward.h b/libcxx/include/__algorithm/copy_backward.h --- a/libcxx/include/__algorithm/copy_backward.h +++ b/libcxx/include/__algorithm/copy_backward.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/copy_if.h b/libcxx/include/__algorithm/copy_if.h --- a/libcxx/include/__algorithm/copy_if.h +++ b/libcxx/include/__algorithm/copy_if.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/copy_n.h b/libcxx/include/__algorithm/copy_n.h --- a/libcxx/include/__algorithm/copy_n.h +++ b/libcxx/include/__algorithm/copy_n.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/count.h b/libcxx/include/__algorithm/count.h --- a/libcxx/include/__algorithm/count.h +++ b/libcxx/include/__algorithm/count.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/count_if.h b/libcxx/include/__algorithm/count_if.h --- a/libcxx/include/__algorithm/count_if.h +++ b/libcxx/include/__algorithm/count_if.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/equal.h b/libcxx/include/__algorithm/equal.h --- a/libcxx/include/__algorithm/equal.h +++ b/libcxx/include/__algorithm/equal.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/equal_range.h b/libcxx/include/__algorithm/equal_range.h --- a/libcxx/include/__algorithm/equal_range.h +++ b/libcxx/include/__algorithm/equal_range.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/fill.h b/libcxx/include/__algorithm/fill.h --- a/libcxx/include/__algorithm/fill.h +++ b/libcxx/include/__algorithm/fill.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/fill_n.h b/libcxx/include/__algorithm/fill_n.h --- a/libcxx/include/__algorithm/fill_n.h +++ b/libcxx/include/__algorithm/fill_n.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/find.h b/libcxx/include/__algorithm/find.h --- a/libcxx/include/__algorithm/find.h +++ b/libcxx/include/__algorithm/find.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/find_end.h b/libcxx/include/__algorithm/find_end.h --- a/libcxx/include/__algorithm/find_end.h +++ b/libcxx/include/__algorithm/find_end.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/find_first_of.h b/libcxx/include/__algorithm/find_first_of.h --- a/libcxx/include/__algorithm/find_first_of.h +++ b/libcxx/include/__algorithm/find_first_of.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/find_if.h b/libcxx/include/__algorithm/find_if.h --- a/libcxx/include/__algorithm/find_if.h +++ b/libcxx/include/__algorithm/find_if.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/find_if_not.h b/libcxx/include/__algorithm/find_if_not.h --- a/libcxx/include/__algorithm/find_if_not.h +++ b/libcxx/include/__algorithm/find_if_not.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/for_each.h b/libcxx/include/__algorithm/for_each.h --- a/libcxx/include/__algorithm/for_each.h +++ b/libcxx/include/__algorithm/for_each.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/for_each_n.h b/libcxx/include/__algorithm/for_each_n.h --- a/libcxx/include/__algorithm/for_each_n.h +++ b/libcxx/include/__algorithm/for_each_n.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/generate.h b/libcxx/include/__algorithm/generate.h --- a/libcxx/include/__algorithm/generate.h +++ b/libcxx/include/__algorithm/generate.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/generate_n.h b/libcxx/include/__algorithm/generate_n.h --- a/libcxx/include/__algorithm/generate_n.h +++ b/libcxx/include/__algorithm/generate_n.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/half_positive.h b/libcxx/include/__algorithm/half_positive.h --- a/libcxx/include/__algorithm/half_positive.h +++ b/libcxx/include/__algorithm/half_positive.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/in_found_result.h b/libcxx/include/__algorithm/in_found_result.h --- a/libcxx/include/__algorithm/in_found_result.h +++ b/libcxx/include/__algorithm/in_found_result.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #if !defined(_LIBCPP_HAS_NO_CONCEPTS) && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) diff --git a/libcxx/include/__algorithm/in_fun_result.h b/libcxx/include/__algorithm/in_fun_result.h --- a/libcxx/include/__algorithm/in_fun_result.h +++ b/libcxx/include/__algorithm/in_fun_result.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/in_in_out_result.h b/libcxx/include/__algorithm/in_in_out_result.h --- a/libcxx/include/__algorithm/in_in_out_result.h +++ b/libcxx/include/__algorithm/in_in_out_result.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/in_in_result.h b/libcxx/include/__algorithm/in_in_result.h --- a/libcxx/include/__algorithm/in_in_result.h +++ b/libcxx/include/__algorithm/in_in_result.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/in_out_out_result.h b/libcxx/include/__algorithm/in_out_out_result.h --- a/libcxx/include/__algorithm/in_out_out_result.h +++ b/libcxx/include/__algorithm/in_out_out_result.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/in_out_result.h b/libcxx/include/__algorithm/in_out_result.h --- a/libcxx/include/__algorithm/in_out_result.h +++ b/libcxx/include/__algorithm/in_out_result.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/includes.h b/libcxx/include/__algorithm/includes.h --- a/libcxx/include/__algorithm/includes.h +++ b/libcxx/include/__algorithm/includes.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/inplace_merge.h b/libcxx/include/__algorithm/inplace_merge.h --- a/libcxx/include/__algorithm/inplace_merge.h +++ b/libcxx/include/__algorithm/inplace_merge.h @@ -23,6 +23,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__algorithm/is_heap.h b/libcxx/include/__algorithm/is_heap.h --- a/libcxx/include/__algorithm/is_heap.h +++ b/libcxx/include/__algorithm/is_heap.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/is_heap_until.h b/libcxx/include/__algorithm/is_heap_until.h --- a/libcxx/include/__algorithm/is_heap_until.h +++ b/libcxx/include/__algorithm/is_heap_until.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/is_partitioned.h b/libcxx/include/__algorithm/is_partitioned.h --- a/libcxx/include/__algorithm/is_partitioned.h +++ b/libcxx/include/__algorithm/is_partitioned.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/is_permutation.h b/libcxx/include/__algorithm/is_permutation.h --- a/libcxx/include/__algorithm/is_permutation.h +++ b/libcxx/include/__algorithm/is_permutation.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/is_sorted.h b/libcxx/include/__algorithm/is_sorted.h --- a/libcxx/include/__algorithm/is_sorted.h +++ b/libcxx/include/__algorithm/is_sorted.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/is_sorted_until.h b/libcxx/include/__algorithm/is_sorted_until.h --- a/libcxx/include/__algorithm/is_sorted_until.h +++ b/libcxx/include/__algorithm/is_sorted_until.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/iter_swap.h b/libcxx/include/__algorithm/iter_swap.h --- a/libcxx/include/__algorithm/iter_swap.h +++ b/libcxx/include/__algorithm/iter_swap.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/lexicographical_compare.h b/libcxx/include/__algorithm/lexicographical_compare.h --- a/libcxx/include/__algorithm/lexicographical_compare.h +++ b/libcxx/include/__algorithm/lexicographical_compare.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/lower_bound.h b/libcxx/include/__algorithm/lower_bound.h --- a/libcxx/include/__algorithm/lower_bound.h +++ b/libcxx/include/__algorithm/lower_bound.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/make_heap.h b/libcxx/include/__algorithm/make_heap.h --- a/libcxx/include/__algorithm/make_heap.h +++ b/libcxx/include/__algorithm/make_heap.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/max.h b/libcxx/include/__algorithm/max.h --- a/libcxx/include/__algorithm/max.h +++ b/libcxx/include/__algorithm/max.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__algorithm/max_element.h b/libcxx/include/__algorithm/max_element.h --- a/libcxx/include/__algorithm/max_element.h +++ b/libcxx/include/__algorithm/max_element.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/merge.h b/libcxx/include/__algorithm/merge.h --- a/libcxx/include/__algorithm/merge.h +++ b/libcxx/include/__algorithm/merge.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/min.h b/libcxx/include/__algorithm/min.h --- a/libcxx/include/__algorithm/min.h +++ b/libcxx/include/__algorithm/min.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__algorithm/min_element.h b/libcxx/include/__algorithm/min_element.h --- a/libcxx/include/__algorithm/min_element.h +++ b/libcxx/include/__algorithm/min_element.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/min_max_result.h b/libcxx/include/__algorithm/min_max_result.h --- a/libcxx/include/__algorithm/min_max_result.h +++ b/libcxx/include/__algorithm/min_max_result.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__algorithm/minmax.h b/libcxx/include/__algorithm/minmax.h --- a/libcxx/include/__algorithm/minmax.h +++ b/libcxx/include/__algorithm/minmax.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/minmax_element.h b/libcxx/include/__algorithm/minmax_element.h --- a/libcxx/include/__algorithm/minmax_element.h +++ b/libcxx/include/__algorithm/minmax_element.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/mismatch.h b/libcxx/include/__algorithm/mismatch.h --- a/libcxx/include/__algorithm/mismatch.h +++ b/libcxx/include/__algorithm/mismatch.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/move.h b/libcxx/include/__algorithm/move.h --- a/libcxx/include/__algorithm/move.h +++ b/libcxx/include/__algorithm/move.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/move_backward.h b/libcxx/include/__algorithm/move_backward.h --- a/libcxx/include/__algorithm/move_backward.h +++ b/libcxx/include/__algorithm/move_backward.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/next_permutation.h b/libcxx/include/__algorithm/next_permutation.h --- a/libcxx/include/__algorithm/next_permutation.h +++ b/libcxx/include/__algorithm/next_permutation.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/none_of.h b/libcxx/include/__algorithm/none_of.h --- a/libcxx/include/__algorithm/none_of.h +++ b/libcxx/include/__algorithm/none_of.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/nth_element.h b/libcxx/include/__algorithm/nth_element.h --- a/libcxx/include/__algorithm/nth_element.h +++ b/libcxx/include/__algorithm/nth_element.h @@ -22,6 +22,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/partial_sort.h b/libcxx/include/__algorithm/partial_sort.h --- a/libcxx/include/__algorithm/partial_sort.h +++ b/libcxx/include/__algorithm/partial_sort.h @@ -24,6 +24,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/partial_sort_copy.h b/libcxx/include/__algorithm/partial_sort_copy.h --- a/libcxx/include/__algorithm/partial_sort_copy.h +++ b/libcxx/include/__algorithm/partial_sort_copy.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/partition.h b/libcxx/include/__algorithm/partition.h --- a/libcxx/include/__algorithm/partition.h +++ b/libcxx/include/__algorithm/partition.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/partition_copy.h b/libcxx/include/__algorithm/partition_copy.h --- a/libcxx/include/__algorithm/partition_copy.h +++ b/libcxx/include/__algorithm/partition_copy.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/partition_point.h b/libcxx/include/__algorithm/partition_point.h --- a/libcxx/include/__algorithm/partition_point.h +++ b/libcxx/include/__algorithm/partition_point.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/pop_heap.h b/libcxx/include/__algorithm/pop_heap.h --- a/libcxx/include/__algorithm/pop_heap.h +++ b/libcxx/include/__algorithm/pop_heap.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/prev_permutation.h b/libcxx/include/__algorithm/prev_permutation.h --- a/libcxx/include/__algorithm/prev_permutation.h +++ b/libcxx/include/__algorithm/prev_permutation.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/push_heap.h b/libcxx/include/__algorithm/push_heap.h --- a/libcxx/include/__algorithm/push_heap.h +++ b/libcxx/include/__algorithm/push_heap.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/ranges_min_element.h b/libcxx/include/__algorithm/ranges_min_element.h --- a/libcxx/include/__algorithm/ranges_min_element.h +++ b/libcxx/include/__algorithm/ranges_min_element.h @@ -22,6 +22,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #if !defined(_LIBCPP_HAS_NO_CONCEPTS) && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) diff --git a/libcxx/include/__algorithm/ranges_swap_ranges.h b/libcxx/include/__algorithm/ranges_swap_ranges.h --- a/libcxx/include/__algorithm/ranges_swap_ranges.h +++ b/libcxx/include/__algorithm/ranges_swap_ranges.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_HAS_NO_CONCEPTS diff --git a/libcxx/include/__algorithm/remove.h b/libcxx/include/__algorithm/remove.h --- a/libcxx/include/__algorithm/remove.h +++ b/libcxx/include/__algorithm/remove.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/remove_copy.h b/libcxx/include/__algorithm/remove_copy.h --- a/libcxx/include/__algorithm/remove_copy.h +++ b/libcxx/include/__algorithm/remove_copy.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/remove_copy_if.h b/libcxx/include/__algorithm/remove_copy_if.h --- a/libcxx/include/__algorithm/remove_copy_if.h +++ b/libcxx/include/__algorithm/remove_copy_if.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/remove_if.h b/libcxx/include/__algorithm/remove_if.h --- a/libcxx/include/__algorithm/remove_if.h +++ b/libcxx/include/__algorithm/remove_if.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/replace.h b/libcxx/include/__algorithm/replace.h --- a/libcxx/include/__algorithm/replace.h +++ b/libcxx/include/__algorithm/replace.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/replace_copy.h b/libcxx/include/__algorithm/replace_copy.h --- a/libcxx/include/__algorithm/replace_copy.h +++ b/libcxx/include/__algorithm/replace_copy.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/replace_copy_if.h b/libcxx/include/__algorithm/replace_copy_if.h --- a/libcxx/include/__algorithm/replace_copy_if.h +++ b/libcxx/include/__algorithm/replace_copy_if.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/replace_if.h b/libcxx/include/__algorithm/replace_if.h --- a/libcxx/include/__algorithm/replace_if.h +++ b/libcxx/include/__algorithm/replace_if.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/reverse.h b/libcxx/include/__algorithm/reverse.h --- a/libcxx/include/__algorithm/reverse.h +++ b/libcxx/include/__algorithm/reverse.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/reverse_copy.h b/libcxx/include/__algorithm/reverse_copy.h --- a/libcxx/include/__algorithm/reverse_copy.h +++ b/libcxx/include/__algorithm/reverse_copy.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/rotate.h b/libcxx/include/__algorithm/rotate.h --- a/libcxx/include/__algorithm/rotate.h +++ b/libcxx/include/__algorithm/rotate.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/rotate_copy.h b/libcxx/include/__algorithm/rotate_copy.h --- a/libcxx/include/__algorithm/rotate_copy.h +++ b/libcxx/include/__algorithm/rotate_copy.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/sample.h b/libcxx/include/__algorithm/sample.h --- a/libcxx/include/__algorithm/sample.h +++ b/libcxx/include/__algorithm/sample.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__algorithm/search.h b/libcxx/include/__algorithm/search.h --- a/libcxx/include/__algorithm/search.h +++ b/libcxx/include/__algorithm/search.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/search_n.h b/libcxx/include/__algorithm/search_n.h --- a/libcxx/include/__algorithm/search_n.h +++ b/libcxx/include/__algorithm/search_n.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/set_difference.h b/libcxx/include/__algorithm/set_difference.h --- a/libcxx/include/__algorithm/set_difference.h +++ b/libcxx/include/__algorithm/set_difference.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/set_intersection.h b/libcxx/include/__algorithm/set_intersection.h --- a/libcxx/include/__algorithm/set_intersection.h +++ b/libcxx/include/__algorithm/set_intersection.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/set_symmetric_difference.h b/libcxx/include/__algorithm/set_symmetric_difference.h --- a/libcxx/include/__algorithm/set_symmetric_difference.h +++ b/libcxx/include/__algorithm/set_symmetric_difference.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/set_union.h b/libcxx/include/__algorithm/set_union.h --- a/libcxx/include/__algorithm/set_union.h +++ b/libcxx/include/__algorithm/set_union.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/shift_left.h b/libcxx/include/__algorithm/shift_left.h --- a/libcxx/include/__algorithm/shift_left.h +++ b/libcxx/include/__algorithm/shift_left.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/shift_right.h b/libcxx/include/__algorithm/shift_right.h --- a/libcxx/include/__algorithm/shift_right.h +++ b/libcxx/include/__algorithm/shift_right.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/shuffle.h b/libcxx/include/__algorithm/shuffle.h --- a/libcxx/include/__algorithm/shuffle.h +++ b/libcxx/include/__algorithm/shuffle.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__algorithm/sift_down.h b/libcxx/include/__algorithm/sift_down.h --- a/libcxx/include/__algorithm/sift_down.h +++ b/libcxx/include/__algorithm/sift_down.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/sort.h b/libcxx/include/__algorithm/sort.h --- a/libcxx/include/__algorithm/sort.h +++ b/libcxx/include/__algorithm/sort.h @@ -24,6 +24,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/sort_heap.h b/libcxx/include/__algorithm/sort_heap.h --- a/libcxx/include/__algorithm/sort_heap.h +++ b/libcxx/include/__algorithm/sort_heap.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/stable_partition.h b/libcxx/include/__algorithm/stable_partition.h --- a/libcxx/include/__algorithm/stable_partition.h +++ b/libcxx/include/__algorithm/stable_partition.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/stable_sort.h b/libcxx/include/__algorithm/stable_sort.h --- a/libcxx/include/__algorithm/stable_sort.h +++ b/libcxx/include/__algorithm/stable_sort.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/swap_ranges.h b/libcxx/include/__algorithm/swap_ranges.h --- a/libcxx/include/__algorithm/swap_ranges.h +++ b/libcxx/include/__algorithm/swap_ranges.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/transform.h b/libcxx/include/__algorithm/transform.h --- a/libcxx/include/__algorithm/transform.h +++ b/libcxx/include/__algorithm/transform.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/unique.h b/libcxx/include/__algorithm/unique.h --- a/libcxx/include/__algorithm/unique.h +++ b/libcxx/include/__algorithm/unique.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/unique_copy.h b/libcxx/include/__algorithm/unique_copy.h --- a/libcxx/include/__algorithm/unique_copy.h +++ b/libcxx/include/__algorithm/unique_copy.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/unwrap_iter.h b/libcxx/include/__algorithm/unwrap_iter.h --- a/libcxx/include/__algorithm/unwrap_iter.h +++ b/libcxx/include/__algorithm/unwrap_iter.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__algorithm/upper_bound.h b/libcxx/include/__algorithm/upper_bound.h --- a/libcxx/include/__algorithm/upper_bound.h +++ b/libcxx/include/__algorithm/upper_bound.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__bit/bit_cast.h b/libcxx/include/__bit/bit_cast.h --- a/libcxx/include/__bit/bit_cast.h +++ b/libcxx/include/__bit/bit_cast.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__bit/byteswap.h b/libcxx/include/__bit/byteswap.h --- a/libcxx/include/__bit/byteswap.h +++ b/libcxx/include/__bit/byteswap.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__bit_reference b/libcxx/include/__bit_reference --- a/libcxx/include/__bit_reference +++ b/libcxx/include/__bit_reference @@ -20,6 +20,8 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__bits b/libcxx/include/__bits --- a/libcxx/include/__bits +++ b/libcxx/include/__bits @@ -14,6 +14,14 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() +# pragma clang include_instead() +# pragma clang include_instead() +# pragma clang include_instead() +# pragma clang include_instead() +# pragma clang include_instead() +# pragma clang include_instead() +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__charconv/chars_format.h b/libcxx/include/__charconv/chars_format.h --- a/libcxx/include/__charconv/chars_format.h +++ b/libcxx/include/__charconv/chars_format.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__charconv/from_chars_result.h b/libcxx/include/__charconv/from_chars_result.h --- a/libcxx/include/__charconv/from_chars_result.h +++ b/libcxx/include/__charconv/from_chars_result.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__charconv/to_chars_result.h b/libcxx/include/__charconv/to_chars_result.h --- a/libcxx/include/__charconv/to_chars_result.h +++ b/libcxx/include/__charconv/to_chars_result.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__chrono/calendar.h b/libcxx/include/__chrono/calendar.h --- a/libcxx/include/__chrono/calendar.h +++ b/libcxx/include/__chrono/calendar.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__chrono/convert_to_timespec.h b/libcxx/include/__chrono/convert_to_timespec.h --- a/libcxx/include/__chrono/convert_to_timespec.h +++ b/libcxx/include/__chrono/convert_to_timespec.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__chrono/duration.h b/libcxx/include/__chrono/duration.h --- a/libcxx/include/__chrono/duration.h +++ b/libcxx/include/__chrono/duration.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__chrono/file_clock.h b/libcxx/include/__chrono/file_clock.h --- a/libcxx/include/__chrono/file_clock.h +++ b/libcxx/include/__chrono/file_clock.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__chrono/high_resolution_clock.h b/libcxx/include/__chrono/high_resolution_clock.h --- a/libcxx/include/__chrono/high_resolution_clock.h +++ b/libcxx/include/__chrono/high_resolution_clock.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__chrono/steady_clock.h b/libcxx/include/__chrono/steady_clock.h --- a/libcxx/include/__chrono/steady_clock.h +++ b/libcxx/include/__chrono/steady_clock.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__chrono/system_clock.h b/libcxx/include/__chrono/system_clock.h --- a/libcxx/include/__chrono/system_clock.h +++ b/libcxx/include/__chrono/system_clock.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__chrono/time_point.h b/libcxx/include/__chrono/time_point.h --- a/libcxx/include/__chrono/time_point.h +++ b/libcxx/include/__chrono/time_point.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__compare/common_comparison_category.h b/libcxx/include/__compare/common_comparison_category.h --- a/libcxx/include/__compare/common_comparison_category.h +++ b/libcxx/include/__compare/common_comparison_category.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__compare/compare_partial_order_fallback.h b/libcxx/include/__compare/compare_partial_order_fallback.h --- a/libcxx/include/__compare/compare_partial_order_fallback.h +++ b/libcxx/include/__compare/compare_partial_order_fallback.h @@ -18,6 +18,7 @@ #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__compare/compare_strong_order_fallback.h b/libcxx/include/__compare/compare_strong_order_fallback.h --- a/libcxx/include/__compare/compare_strong_order_fallback.h +++ b/libcxx/include/__compare/compare_strong_order_fallback.h @@ -18,6 +18,7 @@ #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__compare/compare_three_way.h b/libcxx/include/__compare/compare_three_way.h --- a/libcxx/include/__compare/compare_three_way.h +++ b/libcxx/include/__compare/compare_three_way.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__compare/compare_three_way_result.h b/libcxx/include/__compare/compare_three_way_result.h --- a/libcxx/include/__compare/compare_three_way_result.h +++ b/libcxx/include/__compare/compare_three_way_result.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__compare/compare_weak_order_fallback.h b/libcxx/include/__compare/compare_weak_order_fallback.h --- a/libcxx/include/__compare/compare_weak_order_fallback.h +++ b/libcxx/include/__compare/compare_weak_order_fallback.h @@ -18,6 +18,7 @@ #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__compare/is_eq.h b/libcxx/include/__compare/is_eq.h --- a/libcxx/include/__compare/is_eq.h +++ b/libcxx/include/__compare/is_eq.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__compare/ordering.h b/libcxx/include/__compare/ordering.h --- a/libcxx/include/__compare/ordering.h +++ b/libcxx/include/__compare/ordering.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__compare/partial_order.h b/libcxx/include/__compare/partial_order.h --- a/libcxx/include/__compare/partial_order.h +++ b/libcxx/include/__compare/partial_order.h @@ -19,6 +19,7 @@ #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__compare/strong_order.h b/libcxx/include/__compare/strong_order.h --- a/libcxx/include/__compare/strong_order.h +++ b/libcxx/include/__compare/strong_order.h @@ -22,6 +22,7 @@ #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__compare/synth_three_way.h b/libcxx/include/__compare/synth_three_way.h --- a/libcxx/include/__compare/synth_three_way.h +++ b/libcxx/include/__compare/synth_three_way.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__compare/three_way_comparable.h b/libcxx/include/__compare/three_way_comparable.h --- a/libcxx/include/__compare/three_way_comparable.h +++ b/libcxx/include/__compare/three_way_comparable.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__compare/weak_order.h b/libcxx/include/__compare/weak_order.h --- a/libcxx/include/__compare/weak_order.h +++ b/libcxx/include/__compare/weak_order.h @@ -20,6 +20,7 @@ #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/arithmetic.h b/libcxx/include/__concepts/arithmetic.h --- a/libcxx/include/__concepts/arithmetic.h +++ b/libcxx/include/__concepts/arithmetic.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/assignable.h b/libcxx/include/__concepts/assignable.h --- a/libcxx/include/__concepts/assignable.h +++ b/libcxx/include/__concepts/assignable.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/boolean_testable.h b/libcxx/include/__concepts/boolean_testable.h --- a/libcxx/include/__concepts/boolean_testable.h +++ b/libcxx/include/__concepts/boolean_testable.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/class_or_enum.h b/libcxx/include/__concepts/class_or_enum.h --- a/libcxx/include/__concepts/class_or_enum.h +++ b/libcxx/include/__concepts/class_or_enum.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/common_reference_with.h b/libcxx/include/__concepts/common_reference_with.h --- a/libcxx/include/__concepts/common_reference_with.h +++ b/libcxx/include/__concepts/common_reference_with.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/common_with.h b/libcxx/include/__concepts/common_with.h --- a/libcxx/include/__concepts/common_with.h +++ b/libcxx/include/__concepts/common_with.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/constructible.h b/libcxx/include/__concepts/constructible.h --- a/libcxx/include/__concepts/constructible.h +++ b/libcxx/include/__concepts/constructible.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/convertible_to.h b/libcxx/include/__concepts/convertible_to.h --- a/libcxx/include/__concepts/convertible_to.h +++ b/libcxx/include/__concepts/convertible_to.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/copyable.h b/libcxx/include/__concepts/copyable.h --- a/libcxx/include/__concepts/copyable.h +++ b/libcxx/include/__concepts/copyable.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/derived_from.h b/libcxx/include/__concepts/derived_from.h --- a/libcxx/include/__concepts/derived_from.h +++ b/libcxx/include/__concepts/derived_from.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/destructible.h b/libcxx/include/__concepts/destructible.h --- a/libcxx/include/__concepts/destructible.h +++ b/libcxx/include/__concepts/destructible.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/different_from.h b/libcxx/include/__concepts/different_from.h --- a/libcxx/include/__concepts/different_from.h +++ b/libcxx/include/__concepts/different_from.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/equality_comparable.h b/libcxx/include/__concepts/equality_comparable.h --- a/libcxx/include/__concepts/equality_comparable.h +++ b/libcxx/include/__concepts/equality_comparable.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/invocable.h b/libcxx/include/__concepts/invocable.h --- a/libcxx/include/__concepts/invocable.h +++ b/libcxx/include/__concepts/invocable.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/movable.h b/libcxx/include/__concepts/movable.h --- a/libcxx/include/__concepts/movable.h +++ b/libcxx/include/__concepts/movable.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/predicate.h b/libcxx/include/__concepts/predicate.h --- a/libcxx/include/__concepts/predicate.h +++ b/libcxx/include/__concepts/predicate.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/regular.h b/libcxx/include/__concepts/regular.h --- a/libcxx/include/__concepts/regular.h +++ b/libcxx/include/__concepts/regular.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/relation.h b/libcxx/include/__concepts/relation.h --- a/libcxx/include/__concepts/relation.h +++ b/libcxx/include/__concepts/relation.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/same_as.h b/libcxx/include/__concepts/same_as.h --- a/libcxx/include/__concepts/same_as.h +++ b/libcxx/include/__concepts/same_as.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/semiregular.h b/libcxx/include/__concepts/semiregular.h --- a/libcxx/include/__concepts/semiregular.h +++ b/libcxx/include/__concepts/semiregular.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/swappable.h b/libcxx/include/__concepts/swappable.h --- a/libcxx/include/__concepts/swappable.h +++ b/libcxx/include/__concepts/swappable.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__concepts/totally_ordered.h b/libcxx/include/__concepts/totally_ordered.h --- a/libcxx/include/__concepts/totally_ordered.h +++ b/libcxx/include/__concepts/totally_ordered.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__coroutine/coroutine_handle.h b/libcxx/include/__coroutine/coroutine_handle.h --- a/libcxx/include/__coroutine/coroutine_handle.h +++ b/libcxx/include/__coroutine/coroutine_handle.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES) diff --git a/libcxx/include/__coroutine/coroutine_traits.h b/libcxx/include/__coroutine/coroutine_traits.h --- a/libcxx/include/__coroutine/coroutine_traits.h +++ b/libcxx/include/__coroutine/coroutine_traits.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES) diff --git a/libcxx/include/__coroutine/noop_coroutine_handle.h b/libcxx/include/__coroutine/noop_coroutine_handle.h --- a/libcxx/include/__coroutine/noop_coroutine_handle.h +++ b/libcxx/include/__coroutine/noop_coroutine_handle.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES) @@ -66,7 +67,7 @@ friend coroutine_handle noop_coroutine() noexcept; #if __has_builtin(__builtin_coro_noop) - _LIBCPP_HIDE_FROM_ABI coroutine_handle() noexcept { + _LIBCPP_HIDE_FROM_ABI coroutine_handle() noexcept { this->__handle_ = __builtin_coro_noop(); } diff --git a/libcxx/include/__coroutine/trivial_awaitables.h b/libcxx/include/__coroutine/trivial_awaitables.h --- a/libcxx/include/__coroutine/trivial_awaitables.h +++ b/libcxx/include/__coroutine/trivial_awaitables.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_CXX20_COROUTINES) diff --git a/libcxx/include/__filesystem/copy_options.h b/libcxx/include/__filesystem/copy_options.h --- a/libcxx/include/__filesystem/copy_options.h +++ b/libcxx/include/__filesystem/copy_options.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/directory_entry.h b/libcxx/include/__filesystem/directory_entry.h --- a/libcxx/include/__filesystem/directory_entry.h +++ b/libcxx/include/__filesystem/directory_entry.h @@ -29,6 +29,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__filesystem/directory_iterator.h b/libcxx/include/__filesystem/directory_iterator.h --- a/libcxx/include/__filesystem/directory_iterator.h +++ b/libcxx/include/__filesystem/directory_iterator.h @@ -25,6 +25,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/directory_options.h b/libcxx/include/__filesystem/directory_options.h --- a/libcxx/include/__filesystem/directory_options.h +++ b/libcxx/include/__filesystem/directory_options.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/file_status.h b/libcxx/include/__filesystem/file_status.h --- a/libcxx/include/__filesystem/file_status.h +++ b/libcxx/include/__filesystem/file_status.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/file_time_type.h b/libcxx/include/__filesystem/file_time_type.h --- a/libcxx/include/__filesystem/file_time_type.h +++ b/libcxx/include/__filesystem/file_time_type.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/file_type.h b/libcxx/include/__filesystem/file_type.h --- a/libcxx/include/__filesystem/file_type.h +++ b/libcxx/include/__filesystem/file_type.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/filesystem_error.h b/libcxx/include/__filesystem/filesystem_error.h --- a/libcxx/include/__filesystem/filesystem_error.h +++ b/libcxx/include/__filesystem/filesystem_error.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/operations.h b/libcxx/include/__filesystem/operations.h --- a/libcxx/include/__filesystem/operations.h +++ b/libcxx/include/__filesystem/operations.h @@ -26,6 +26,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/path.h b/libcxx/include/__filesystem/path.h --- a/libcxx/include/__filesystem/path.h +++ b/libcxx/include/__filesystem/path.h @@ -28,6 +28,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/path_iterator.h b/libcxx/include/__filesystem/path_iterator.h --- a/libcxx/include/__filesystem/path_iterator.h +++ b/libcxx/include/__filesystem/path_iterator.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/perm_options.h b/libcxx/include/__filesystem/perm_options.h --- a/libcxx/include/__filesystem/perm_options.h +++ b/libcxx/include/__filesystem/perm_options.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/perms.h b/libcxx/include/__filesystem/perms.h --- a/libcxx/include/__filesystem/perms.h +++ b/libcxx/include/__filesystem/perms.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/recursive_directory_iterator.h b/libcxx/include/__filesystem/recursive_directory_iterator.h --- a/libcxx/include/__filesystem/recursive_directory_iterator.h +++ b/libcxx/include/__filesystem/recursive_directory_iterator.h @@ -24,6 +24,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/space_info.h b/libcxx/include/__filesystem/space_info.h --- a/libcxx/include/__filesystem/space_info.h +++ b/libcxx/include/__filesystem/space_info.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__filesystem/u8path.h b/libcxx/include/__filesystem/u8path.h --- a/libcxx/include/__filesystem/u8path.h +++ b/libcxx/include/__filesystem/u8path.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #ifndef _LIBCPP_CXX03_LANG diff --git a/libcxx/include/__format/format_arg.h b/libcxx/include/__format/format_arg.h --- a/libcxx/include/__format/format_arg.h +++ b/libcxx/include/__format/format_arg.h @@ -24,6 +24,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/format_args.h b/libcxx/include/__format/format_args.h --- a/libcxx/include/__format/format_args.h +++ b/libcxx/include/__format/format_args.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/format_context.h b/libcxx/include/__format/format_context.h --- a/libcxx/include/__format/format_context.h +++ b/libcxx/include/__format/format_context.h @@ -25,6 +25,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/format_error.h b/libcxx/include/__format/format_error.h --- a/libcxx/include/__format/format_error.h +++ b/libcxx/include/__format/format_error.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/format_fwd.h b/libcxx/include/__format/format_fwd.h --- a/libcxx/include/__format/format_fwd.h +++ b/libcxx/include/__format/format_fwd.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/format_parse_context.h b/libcxx/include/__format/format_parse_context.h --- a/libcxx/include/__format/format_parse_context.h +++ b/libcxx/include/__format/format_parse_context.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/format_string.h b/libcxx/include/__format/format_string.h --- a/libcxx/include/__format/format_string.h +++ b/libcxx/include/__format/format_string.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/format_to_n_result.h b/libcxx/include/__format/format_to_n_result.h --- a/libcxx/include/__format/format_to_n_result.h +++ b/libcxx/include/__format/format_to_n_result.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/formatter.h b/libcxx/include/__format/formatter.h --- a/libcxx/include/__format/formatter.h +++ b/libcxx/include/__format/formatter.h @@ -25,6 +25,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/formatter_bool.h b/libcxx/include/__format/formatter_bool.h --- a/libcxx/include/__format/formatter_bool.h +++ b/libcxx/include/__format/formatter_bool.h @@ -25,6 +25,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/formatter_char.h b/libcxx/include/__format/formatter_char.h --- a/libcxx/include/__format/formatter_char.h +++ b/libcxx/include/__format/formatter_char.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/formatter_floating_point.h b/libcxx/include/__format/formatter_floating_point.h --- a/libcxx/include/__format/formatter_floating_point.h +++ b/libcxx/include/__format/formatter_floating_point.h @@ -37,6 +37,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__format/formatter_integer.h b/libcxx/include/__format/formatter_integer.h --- a/libcxx/include/__format/formatter_integer.h +++ b/libcxx/include/__format/formatter_integer.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__format/formatter_integral.h b/libcxx/include/__format/formatter_integral.h --- a/libcxx/include/__format/formatter_integral.h +++ b/libcxx/include/__format/formatter_integral.h @@ -33,6 +33,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__format/formatter_pointer.h b/libcxx/include/__format/formatter_pointer.h --- a/libcxx/include/__format/formatter_pointer.h +++ b/libcxx/include/__format/formatter_pointer.h @@ -24,6 +24,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/formatter_string.h b/libcxx/include/__format/formatter_string.h --- a/libcxx/include/__format/formatter_string.h +++ b/libcxx/include/__format/formatter_string.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__format/parser_std_format_spec.h b/libcxx/include/__format/parser_std_format_spec.h --- a/libcxx/include/__format/parser_std_format_spec.h +++ b/libcxx/include/__format/parser_std_format_spec.h @@ -25,6 +25,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__functional/binary_function.h b/libcxx/include/__functional/binary_function.h --- a/libcxx/include/__functional/binary_function.h +++ b/libcxx/include/__functional/binary_function.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/binary_negate.h b/libcxx/include/__functional/binary_negate.h --- a/libcxx/include/__functional/binary_negate.h +++ b/libcxx/include/__functional/binary_negate.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/bind.h b/libcxx/include/__functional/bind.h --- a/libcxx/include/__functional/bind.h +++ b/libcxx/include/__functional/bind.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/bind_back.h b/libcxx/include/__functional/bind_back.h --- a/libcxx/include/__functional/bind_back.h +++ b/libcxx/include/__functional/bind_back.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/bind_front.h b/libcxx/include/__functional/bind_front.h --- a/libcxx/include/__functional/bind_front.h +++ b/libcxx/include/__functional/bind_front.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/binder1st.h b/libcxx/include/__functional/binder1st.h --- a/libcxx/include/__functional/binder1st.h +++ b/libcxx/include/__functional/binder1st.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/binder2nd.h b/libcxx/include/__functional/binder2nd.h --- a/libcxx/include/__functional/binder2nd.h +++ b/libcxx/include/__functional/binder2nd.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/compose.h b/libcxx/include/__functional/compose.h --- a/libcxx/include/__functional/compose.h +++ b/libcxx/include/__functional/compose.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/default_searcher.h b/libcxx/include/__functional/default_searcher.h --- a/libcxx/include/__functional/default_searcher.h +++ b/libcxx/include/__functional/default_searcher.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/function.h b/libcxx/include/__functional/function.h --- a/libcxx/include/__functional/function.h +++ b/libcxx/include/__functional/function.h @@ -28,6 +28,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/hash.h b/libcxx/include/__functional/hash.h --- a/libcxx/include/__functional/hash.h +++ b/libcxx/include/__functional/hash.h @@ -24,6 +24,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/identity.h b/libcxx/include/__functional/identity.h --- a/libcxx/include/__functional/identity.h +++ b/libcxx/include/__functional/identity.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/invoke.h b/libcxx/include/__functional/invoke.h --- a/libcxx/include/__functional/invoke.h +++ b/libcxx/include/__functional/invoke.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/is_transparent.h b/libcxx/include/__functional/is_transparent.h --- a/libcxx/include/__functional/is_transparent.h +++ b/libcxx/include/__functional/is_transparent.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/mem_fn.h b/libcxx/include/__functional/mem_fn.h --- a/libcxx/include/__functional/mem_fn.h +++ b/libcxx/include/__functional/mem_fn.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/mem_fun_ref.h b/libcxx/include/__functional/mem_fun_ref.h --- a/libcxx/include/__functional/mem_fun_ref.h +++ b/libcxx/include/__functional/mem_fun_ref.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/not_fn.h b/libcxx/include/__functional/not_fn.h --- a/libcxx/include/__functional/not_fn.h +++ b/libcxx/include/__functional/not_fn.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/operations.h b/libcxx/include/__functional/operations.h --- a/libcxx/include/__functional/operations.h +++ b/libcxx/include/__functional/operations.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/perfect_forward.h b/libcxx/include/__functional/perfect_forward.h --- a/libcxx/include/__functional/perfect_forward.h +++ b/libcxx/include/__functional/perfect_forward.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/pointer_to_binary_function.h b/libcxx/include/__functional/pointer_to_binary_function.h --- a/libcxx/include/__functional/pointer_to_binary_function.h +++ b/libcxx/include/__functional/pointer_to_binary_function.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/pointer_to_unary_function.h b/libcxx/include/__functional/pointer_to_unary_function.h --- a/libcxx/include/__functional/pointer_to_unary_function.h +++ b/libcxx/include/__functional/pointer_to_unary_function.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/ranges_operations.h b/libcxx/include/__functional/ranges_operations.h --- a/libcxx/include/__functional/ranges_operations.h +++ b/libcxx/include/__functional/ranges_operations.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/reference_wrapper.h b/libcxx/include/__functional/reference_wrapper.h --- a/libcxx/include/__functional/reference_wrapper.h +++ b/libcxx/include/__functional/reference_wrapper.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/unary_function.h b/libcxx/include/__functional/unary_function.h --- a/libcxx/include/__functional/unary_function.h +++ b/libcxx/include/__functional/unary_function.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/unary_negate.h b/libcxx/include/__functional/unary_negate.h --- a/libcxx/include/__functional/unary_negate.h +++ b/libcxx/include/__functional/unary_negate.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/unwrap_ref.h b/libcxx/include/__functional/unwrap_ref.h --- a/libcxx/include/__functional/unwrap_ref.h +++ b/libcxx/include/__functional/unwrap_ref.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__functional/weak_result_type.h b/libcxx/include/__functional/weak_result_type.h --- a/libcxx/include/__functional/weak_result_type.h +++ b/libcxx/include/__functional/weak_result_type.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__hash_table b/libcxx/include/__hash_table --- a/libcxx/include/__hash_table +++ b/libcxx/include/__hash_table @@ -26,6 +26,8 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__ios/fpos.h b/libcxx/include/__ios/fpos.h --- a/libcxx/include/__ios/fpos.h +++ b/libcxx/include/__ios/fpos.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/access.h b/libcxx/include/__iterator/access.h --- a/libcxx/include/__iterator/access.h +++ b/libcxx/include/__iterator/access.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/advance.h b/libcxx/include/__iterator/advance.h --- a/libcxx/include/__iterator/advance.h +++ b/libcxx/include/__iterator/advance.h @@ -24,6 +24,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/back_insert_iterator.h b/libcxx/include/__iterator/back_insert_iterator.h --- a/libcxx/include/__iterator/back_insert_iterator.h +++ b/libcxx/include/__iterator/back_insert_iterator.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/common_iterator.h b/libcxx/include/__iterator/common_iterator.h --- a/libcxx/include/__iterator/common_iterator.h +++ b/libcxx/include/__iterator/common_iterator.h @@ -23,6 +23,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/concepts.h b/libcxx/include/__iterator/concepts.h --- a/libcxx/include/__iterator/concepts.h +++ b/libcxx/include/__iterator/concepts.h @@ -22,6 +22,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/counted_iterator.h b/libcxx/include/__iterator/counted_iterator.h --- a/libcxx/include/__iterator/counted_iterator.h +++ b/libcxx/include/__iterator/counted_iterator.h @@ -26,6 +26,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/data.h b/libcxx/include/__iterator/data.h --- a/libcxx/include/__iterator/data.h +++ b/libcxx/include/__iterator/data.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/default_sentinel.h b/libcxx/include/__iterator/default_sentinel.h --- a/libcxx/include/__iterator/default_sentinel.h +++ b/libcxx/include/__iterator/default_sentinel.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/distance.h b/libcxx/include/__iterator/distance.h --- a/libcxx/include/__iterator/distance.h +++ b/libcxx/include/__iterator/distance.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/empty.h b/libcxx/include/__iterator/empty.h --- a/libcxx/include/__iterator/empty.h +++ b/libcxx/include/__iterator/empty.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/erase_if_container.h b/libcxx/include/__iterator/erase_if_container.h --- a/libcxx/include/__iterator/erase_if_container.h +++ b/libcxx/include/__iterator/erase_if_container.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/front_insert_iterator.h b/libcxx/include/__iterator/front_insert_iterator.h --- a/libcxx/include/__iterator/front_insert_iterator.h +++ b/libcxx/include/__iterator/front_insert_iterator.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/incrementable_traits.h b/libcxx/include/__iterator/incrementable_traits.h --- a/libcxx/include/__iterator/incrementable_traits.h +++ b/libcxx/include/__iterator/incrementable_traits.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/indirectly_comparable.h b/libcxx/include/__iterator/indirectly_comparable.h --- a/libcxx/include/__iterator/indirectly_comparable.h +++ b/libcxx/include/__iterator/indirectly_comparable.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/insert_iterator.h b/libcxx/include/__iterator/insert_iterator.h --- a/libcxx/include/__iterator/insert_iterator.h +++ b/libcxx/include/__iterator/insert_iterator.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/istream_iterator.h b/libcxx/include/__iterator/istream_iterator.h --- a/libcxx/include/__iterator/istream_iterator.h +++ b/libcxx/include/__iterator/istream_iterator.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/istreambuf_iterator.h b/libcxx/include/__iterator/istreambuf_iterator.h --- a/libcxx/include/__iterator/istreambuf_iterator.h +++ b/libcxx/include/__iterator/istreambuf_iterator.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/iter_move.h b/libcxx/include/__iterator/iter_move.h --- a/libcxx/include/__iterator/iter_move.h +++ b/libcxx/include/__iterator/iter_move.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/iter_swap.h b/libcxx/include/__iterator/iter_swap.h --- a/libcxx/include/__iterator/iter_swap.h +++ b/libcxx/include/__iterator/iter_swap.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/iterator.h b/libcxx/include/__iterator/iterator.h --- a/libcxx/include/__iterator/iterator.h +++ b/libcxx/include/__iterator/iterator.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/iterator_traits.h b/libcxx/include/__iterator/iterator_traits.h --- a/libcxx/include/__iterator/iterator_traits.h +++ b/libcxx/include/__iterator/iterator_traits.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/mergeable.h b/libcxx/include/__iterator/mergeable.h --- a/libcxx/include/__iterator/mergeable.h +++ b/libcxx/include/__iterator/mergeable.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/move_iterator.h b/libcxx/include/__iterator/move_iterator.h --- a/libcxx/include/__iterator/move_iterator.h +++ b/libcxx/include/__iterator/move_iterator.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/next.h b/libcxx/include/__iterator/next.h --- a/libcxx/include/__iterator/next.h +++ b/libcxx/include/__iterator/next.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/ostream_iterator.h b/libcxx/include/__iterator/ostream_iterator.h --- a/libcxx/include/__iterator/ostream_iterator.h +++ b/libcxx/include/__iterator/ostream_iterator.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/ostreambuf_iterator.h b/libcxx/include/__iterator/ostreambuf_iterator.h --- a/libcxx/include/__iterator/ostreambuf_iterator.h +++ b/libcxx/include/__iterator/ostreambuf_iterator.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/permutable.h b/libcxx/include/__iterator/permutable.h --- a/libcxx/include/__iterator/permutable.h +++ b/libcxx/include/__iterator/permutable.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/prev.h b/libcxx/include/__iterator/prev.h --- a/libcxx/include/__iterator/prev.h +++ b/libcxx/include/__iterator/prev.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/projected.h b/libcxx/include/__iterator/projected.h --- a/libcxx/include/__iterator/projected.h +++ b/libcxx/include/__iterator/projected.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/readable_traits.h b/libcxx/include/__iterator/readable_traits.h --- a/libcxx/include/__iterator/readable_traits.h +++ b/libcxx/include/__iterator/readable_traits.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/reverse_access.h b/libcxx/include/__iterator/reverse_access.h --- a/libcxx/include/__iterator/reverse_access.h +++ b/libcxx/include/__iterator/reverse_access.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/reverse_iterator.h b/libcxx/include/__iterator/reverse_iterator.h --- a/libcxx/include/__iterator/reverse_iterator.h +++ b/libcxx/include/__iterator/reverse_iterator.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/size.h b/libcxx/include/__iterator/size.h --- a/libcxx/include/__iterator/size.h +++ b/libcxx/include/__iterator/size.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/sortable.h b/libcxx/include/__iterator/sortable.h --- a/libcxx/include/__iterator/sortable.h +++ b/libcxx/include/__iterator/sortable.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/unreachable_sentinel.h b/libcxx/include/__iterator/unreachable_sentinel.h --- a/libcxx/include/__iterator/unreachable_sentinel.h +++ b/libcxx/include/__iterator/unreachable_sentinel.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__iterator/wrap_iter.h b/libcxx/include/__iterator/wrap_iter.h --- a/libcxx/include/__iterator/wrap_iter.h +++ b/libcxx/include/__iterator/wrap_iter.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__locale b/libcxx/include/__locale --- a/libcxx/include/__locale +++ b/libcxx/include/__locale @@ -48,6 +48,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/addressof.h b/libcxx/include/__memory/addressof.h --- a/libcxx/include/__memory/addressof.h +++ b/libcxx/include/__memory/addressof.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/allocation_guard.h b/libcxx/include/__memory/allocation_guard.h --- a/libcxx/include/__memory/allocation_guard.h +++ b/libcxx/include/__memory/allocation_guard.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/allocator.h b/libcxx/include/__memory/allocator.h --- a/libcxx/include/__memory/allocator.h +++ b/libcxx/include/__memory/allocator.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/allocator_arg_t.h b/libcxx/include/__memory/allocator_arg_t.h --- a/libcxx/include/__memory/allocator_arg_t.h +++ b/libcxx/include/__memory/allocator_arg_t.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/allocator_traits.h b/libcxx/include/__memory/allocator_traits.h --- a/libcxx/include/__memory/allocator_traits.h +++ b/libcxx/include/__memory/allocator_traits.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__memory/auto_ptr.h b/libcxx/include/__memory/auto_ptr.h --- a/libcxx/include/__memory/auto_ptr.h +++ b/libcxx/include/__memory/auto_ptr.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/compressed_pair.h b/libcxx/include/__memory/compressed_pair.h --- a/libcxx/include/__memory/compressed_pair.h +++ b/libcxx/include/__memory/compressed_pair.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/concepts.h b/libcxx/include/__memory/concepts.h --- a/libcxx/include/__memory/concepts.h +++ b/libcxx/include/__memory/concepts.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/construct_at.h b/libcxx/include/__memory/construct_at.h --- a/libcxx/include/__memory/construct_at.h +++ b/libcxx/include/__memory/construct_at.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/pointer_traits.h b/libcxx/include/__memory/pointer_traits.h --- a/libcxx/include/__memory/pointer_traits.h +++ b/libcxx/include/__memory/pointer_traits.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/ranges_construct_at.h b/libcxx/include/__memory/ranges_construct_at.h --- a/libcxx/include/__memory/ranges_construct_at.h +++ b/libcxx/include/__memory/ranges_construct_at.h @@ -25,6 +25,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/ranges_uninitialized_algorithms.h b/libcxx/include/__memory/ranges_uninitialized_algorithms.h --- a/libcxx/include/__memory/ranges_uninitialized_algorithms.h +++ b/libcxx/include/__memory/ranges_uninitialized_algorithms.h @@ -28,6 +28,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/raw_storage_iterator.h b/libcxx/include/__memory/raw_storage_iterator.h --- a/libcxx/include/__memory/raw_storage_iterator.h +++ b/libcxx/include/__memory/raw_storage_iterator.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/shared_ptr.h b/libcxx/include/__memory/shared_ptr.h --- a/libcxx/include/__memory/shared_ptr.h +++ b/libcxx/include/__memory/shared_ptr.h @@ -40,6 +40,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/temporary_buffer.h b/libcxx/include/__memory/temporary_buffer.h --- a/libcxx/include/__memory/temporary_buffer.h +++ b/libcxx/include/__memory/temporary_buffer.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/uninitialized_algorithms.h b/libcxx/include/__memory/uninitialized_algorithms.h --- a/libcxx/include/__memory/uninitialized_algorithms.h +++ b/libcxx/include/__memory/uninitialized_algorithms.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/unique_ptr.h b/libcxx/include/__memory/unique_ptr.h --- a/libcxx/include/__memory/unique_ptr.h +++ b/libcxx/include/__memory/unique_ptr.h @@ -26,6 +26,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/uses_allocator.h b/libcxx/include/__memory/uses_allocator.h --- a/libcxx/include/__memory/uses_allocator.h +++ b/libcxx/include/__memory/uses_allocator.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__memory/voidify.h b/libcxx/include/__memory/voidify.h --- a/libcxx/include/__memory/voidify.h +++ b/libcxx/include/__memory/voidify.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__mutex_base b/libcxx/include/__mutex_base --- a/libcxx/include/__mutex_base +++ b/libcxx/include/__mutex_base @@ -22,6 +22,8 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__node_handle b/libcxx/include/__node_handle --- a/libcxx/include/__node_handle +++ b/libcxx/include/__node_handle @@ -65,6 +65,10 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() +# pragma clang include_instead() +# pragma clang include_instead() +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__numeric/accumulate.h b/libcxx/include/__numeric/accumulate.h --- a/libcxx/include/__numeric/accumulate.h +++ b/libcxx/include/__numeric/accumulate.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__numeric/adjacent_difference.h b/libcxx/include/__numeric/adjacent_difference.h --- a/libcxx/include/__numeric/adjacent_difference.h +++ b/libcxx/include/__numeric/adjacent_difference.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__numeric/exclusive_scan.h b/libcxx/include/__numeric/exclusive_scan.h --- a/libcxx/include/__numeric/exclusive_scan.h +++ b/libcxx/include/__numeric/exclusive_scan.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__numeric/gcd_lcm.h b/libcxx/include/__numeric/gcd_lcm.h --- a/libcxx/include/__numeric/gcd_lcm.h +++ b/libcxx/include/__numeric/gcd_lcm.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__numeric/inclusive_scan.h b/libcxx/include/__numeric/inclusive_scan.h --- a/libcxx/include/__numeric/inclusive_scan.h +++ b/libcxx/include/__numeric/inclusive_scan.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__numeric/inner_product.h b/libcxx/include/__numeric/inner_product.h --- a/libcxx/include/__numeric/inner_product.h +++ b/libcxx/include/__numeric/inner_product.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__numeric/iota.h b/libcxx/include/__numeric/iota.h --- a/libcxx/include/__numeric/iota.h +++ b/libcxx/include/__numeric/iota.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__numeric/midpoint.h b/libcxx/include/__numeric/midpoint.h --- a/libcxx/include/__numeric/midpoint.h +++ b/libcxx/include/__numeric/midpoint.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__numeric/partial_sum.h b/libcxx/include/__numeric/partial_sum.h --- a/libcxx/include/__numeric/partial_sum.h +++ b/libcxx/include/__numeric/partial_sum.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__numeric/reduce.h b/libcxx/include/__numeric/reduce.h --- a/libcxx/include/__numeric/reduce.h +++ b/libcxx/include/__numeric/reduce.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__numeric/transform_exclusive_scan.h b/libcxx/include/__numeric/transform_exclusive_scan.h --- a/libcxx/include/__numeric/transform_exclusive_scan.h +++ b/libcxx/include/__numeric/transform_exclusive_scan.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__numeric/transform_inclusive_scan.h b/libcxx/include/__numeric/transform_inclusive_scan.h --- a/libcxx/include/__numeric/transform_inclusive_scan.h +++ b/libcxx/include/__numeric/transform_inclusive_scan.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__numeric/transform_reduce.h b/libcxx/include/__numeric/transform_reduce.h --- a/libcxx/include/__numeric/transform_reduce.h +++ b/libcxx/include/__numeric/transform_reduce.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__random/bernoulli_distribution.h b/libcxx/include/__random/bernoulli_distribution.h --- a/libcxx/include/__random/bernoulli_distribution.h +++ b/libcxx/include/__random/bernoulli_distribution.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/binomial_distribution.h b/libcxx/include/__random/binomial_distribution.h --- a/libcxx/include/__random/binomial_distribution.h +++ b/libcxx/include/__random/binomial_distribution.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/cauchy_distribution.h b/libcxx/include/__random/cauchy_distribution.h --- a/libcxx/include/__random/cauchy_distribution.h +++ b/libcxx/include/__random/cauchy_distribution.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/chi_squared_distribution.h b/libcxx/include/__random/chi_squared_distribution.h --- a/libcxx/include/__random/chi_squared_distribution.h +++ b/libcxx/include/__random/chi_squared_distribution.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/clamp_to_integral.h b/libcxx/include/__random/clamp_to_integral.h --- a/libcxx/include/__random/clamp_to_integral.h +++ b/libcxx/include/__random/clamp_to_integral.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/default_random_engine.h b/libcxx/include/__random/default_random_engine.h --- a/libcxx/include/__random/default_random_engine.h +++ b/libcxx/include/__random/default_random_engine.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__random/discard_block_engine.h b/libcxx/include/__random/discard_block_engine.h --- a/libcxx/include/__random/discard_block_engine.h +++ b/libcxx/include/__random/discard_block_engine.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/discrete_distribution.h b/libcxx/include/__random/discrete_distribution.h --- a/libcxx/include/__random/discrete_distribution.h +++ b/libcxx/include/__random/discrete_distribution.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/exponential_distribution.h b/libcxx/include/__random/exponential_distribution.h --- a/libcxx/include/__random/exponential_distribution.h +++ b/libcxx/include/__random/exponential_distribution.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/extreme_value_distribution.h b/libcxx/include/__random/extreme_value_distribution.h --- a/libcxx/include/__random/extreme_value_distribution.h +++ b/libcxx/include/__random/extreme_value_distribution.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/fisher_f_distribution.h b/libcxx/include/__random/fisher_f_distribution.h --- a/libcxx/include/__random/fisher_f_distribution.h +++ b/libcxx/include/__random/fisher_f_distribution.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/gamma_distribution.h b/libcxx/include/__random/gamma_distribution.h --- a/libcxx/include/__random/gamma_distribution.h +++ b/libcxx/include/__random/gamma_distribution.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/generate_canonical.h b/libcxx/include/__random/generate_canonical.h --- a/libcxx/include/__random/generate_canonical.h +++ b/libcxx/include/__random/generate_canonical.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/geometric_distribution.h b/libcxx/include/__random/geometric_distribution.h --- a/libcxx/include/__random/geometric_distribution.h +++ b/libcxx/include/__random/geometric_distribution.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/independent_bits_engine.h b/libcxx/include/__random/independent_bits_engine.h --- a/libcxx/include/__random/independent_bits_engine.h +++ b/libcxx/include/__random/independent_bits_engine.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/is_seed_sequence.h b/libcxx/include/__random/is_seed_sequence.h --- a/libcxx/include/__random/is_seed_sequence.h +++ b/libcxx/include/__random/is_seed_sequence.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__random/knuth_b.h b/libcxx/include/__random/knuth_b.h --- a/libcxx/include/__random/knuth_b.h +++ b/libcxx/include/__random/knuth_b.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__random/linear_congruential_engine.h b/libcxx/include/__random/linear_congruential_engine.h --- a/libcxx/include/__random/linear_congruential_engine.h +++ b/libcxx/include/__random/linear_congruential_engine.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/log2.h b/libcxx/include/__random/log2.h --- a/libcxx/include/__random/log2.h +++ b/libcxx/include/__random/log2.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__random/lognormal_distribution.h b/libcxx/include/__random/lognormal_distribution.h --- a/libcxx/include/__random/lognormal_distribution.h +++ b/libcxx/include/__random/lognormal_distribution.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/mersenne_twister_engine.h b/libcxx/include/__random/mersenne_twister_engine.h --- a/libcxx/include/__random/mersenne_twister_engine.h +++ b/libcxx/include/__random/mersenne_twister_engine.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/negative_binomial_distribution.h b/libcxx/include/__random/negative_binomial_distribution.h --- a/libcxx/include/__random/negative_binomial_distribution.h +++ b/libcxx/include/__random/negative_binomial_distribution.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/normal_distribution.h b/libcxx/include/__random/normal_distribution.h --- a/libcxx/include/__random/normal_distribution.h +++ b/libcxx/include/__random/normal_distribution.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/piecewise_constant_distribution.h b/libcxx/include/__random/piecewise_constant_distribution.h --- a/libcxx/include/__random/piecewise_constant_distribution.h +++ b/libcxx/include/__random/piecewise_constant_distribution.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/piecewise_linear_distribution.h b/libcxx/include/__random/piecewise_linear_distribution.h --- a/libcxx/include/__random/piecewise_linear_distribution.h +++ b/libcxx/include/__random/piecewise_linear_distribution.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/poisson_distribution.h b/libcxx/include/__random/poisson_distribution.h --- a/libcxx/include/__random/poisson_distribution.h +++ b/libcxx/include/__random/poisson_distribution.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/random_device.h b/libcxx/include/__random/random_device.h --- a/libcxx/include/__random/random_device.h +++ b/libcxx/include/__random/random_device.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/ranlux.h b/libcxx/include/__random/ranlux.h --- a/libcxx/include/__random/ranlux.h +++ b/libcxx/include/__random/ranlux.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__random/seed_seq.h b/libcxx/include/__random/seed_seq.h --- a/libcxx/include/__random/seed_seq.h +++ b/libcxx/include/__random/seed_seq.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/shuffle_order_engine.h b/libcxx/include/__random/shuffle_order_engine.h --- a/libcxx/include/__random/shuffle_order_engine.h +++ b/libcxx/include/__random/shuffle_order_engine.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/student_t_distribution.h b/libcxx/include/__random/student_t_distribution.h --- a/libcxx/include/__random/student_t_distribution.h +++ b/libcxx/include/__random/student_t_distribution.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/subtract_with_carry_engine.h b/libcxx/include/__random/subtract_with_carry_engine.h --- a/libcxx/include/__random/subtract_with_carry_engine.h +++ b/libcxx/include/__random/subtract_with_carry_engine.h @@ -22,6 +22,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/uniform_int_distribution.h b/libcxx/include/__random/uniform_int_distribution.h --- a/libcxx/include/__random/uniform_int_distribution.h +++ b/libcxx/include/__random/uniform_int_distribution.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/uniform_random_bit_generator.h b/libcxx/include/__random/uniform_random_bit_generator.h --- a/libcxx/include/__random/uniform_random_bit_generator.h +++ b/libcxx/include/__random/uniform_random_bit_generator.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/uniform_real_distribution.h b/libcxx/include/__random/uniform_real_distribution.h --- a/libcxx/include/__random/uniform_real_distribution.h +++ b/libcxx/include/__random/uniform_real_distribution.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__random/weibull_distribution.h b/libcxx/include/__random/weibull_distribution.h --- a/libcxx/include/__random/weibull_distribution.h +++ b/libcxx/include/__random/weibull_distribution.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__ranges/access.h b/libcxx/include/__ranges/access.h --- a/libcxx/include/__ranges/access.h +++ b/libcxx/include/__ranges/access.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/all.h b/libcxx/include/__ranges/all.h --- a/libcxx/include/__ranges/all.h +++ b/libcxx/include/__ranges/all.h @@ -24,6 +24,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/common_view.h b/libcxx/include/__ranges/common_view.h --- a/libcxx/include/__ranges/common_view.h +++ b/libcxx/include/__ranges/common_view.h @@ -26,6 +26,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/concepts.h b/libcxx/include/__ranges/concepts.h --- a/libcxx/include/__ranges/concepts.h +++ b/libcxx/include/__ranges/concepts.h @@ -28,6 +28,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/copyable_box.h b/libcxx/include/__ranges/copyable_box.h --- a/libcxx/include/__ranges/copyable_box.h +++ b/libcxx/include/__ranges/copyable_box.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/counted.h b/libcxx/include/__ranges/counted.h --- a/libcxx/include/__ranges/counted.h +++ b/libcxx/include/__ranges/counted.h @@ -25,6 +25,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/dangling.h b/libcxx/include/__ranges/dangling.h --- a/libcxx/include/__ranges/dangling.h +++ b/libcxx/include/__ranges/dangling.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/data.h b/libcxx/include/__ranges/data.h --- a/libcxx/include/__ranges/data.h +++ b/libcxx/include/__ranges/data.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/drop_view.h b/libcxx/include/__ranges/drop_view.h --- a/libcxx/include/__ranges/drop_view.h +++ b/libcxx/include/__ranges/drop_view.h @@ -27,6 +27,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/empty.h b/libcxx/include/__ranges/empty.h --- a/libcxx/include/__ranges/empty.h +++ b/libcxx/include/__ranges/empty.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/empty_view.h b/libcxx/include/__ranges/empty_view.h --- a/libcxx/include/__ranges/empty_view.h +++ b/libcxx/include/__ranges/empty_view.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/enable_borrowed_range.h b/libcxx/include/__ranges/enable_borrowed_range.h --- a/libcxx/include/__ranges/enable_borrowed_range.h +++ b/libcxx/include/__ranges/enable_borrowed_range.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/enable_view.h b/libcxx/include/__ranges/enable_view.h --- a/libcxx/include/__ranges/enable_view.h +++ b/libcxx/include/__ranges/enable_view.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/iota_view.h b/libcxx/include/__ranges/iota_view.h --- a/libcxx/include/__ranges/iota_view.h +++ b/libcxx/include/__ranges/iota_view.h @@ -35,6 +35,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/join_view.h b/libcxx/include/__ranges/join_view.h --- a/libcxx/include/__ranges/join_view.h +++ b/libcxx/include/__ranges/join_view.h @@ -26,6 +26,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/non_propagating_cache.h b/libcxx/include/__ranges/non_propagating_cache.h --- a/libcxx/include/__ranges/non_propagating_cache.h +++ b/libcxx/include/__ranges/non_propagating_cache.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/owning_view.h b/libcxx/include/__ranges/owning_view.h --- a/libcxx/include/__ranges/owning_view.h +++ b/libcxx/include/__ranges/owning_view.h @@ -24,6 +24,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/range_adaptor.h b/libcxx/include/__ranges/range_adaptor.h --- a/libcxx/include/__ranges/range_adaptor.h +++ b/libcxx/include/__ranges/range_adaptor.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/rbegin.h b/libcxx/include/__ranges/rbegin.h --- a/libcxx/include/__ranges/rbegin.h +++ b/libcxx/include/__ranges/rbegin.h @@ -21,6 +21,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/ref_view.h b/libcxx/include/__ranges/ref_view.h --- a/libcxx/include/__ranges/ref_view.h +++ b/libcxx/include/__ranges/ref_view.h @@ -27,6 +27,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/rend.h b/libcxx/include/__ranges/rend.h --- a/libcxx/include/__ranges/rend.h +++ b/libcxx/include/__ranges/rend.h @@ -22,6 +22,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/reverse_view.h b/libcxx/include/__ranges/reverse_view.h --- a/libcxx/include/__ranges/reverse_view.h +++ b/libcxx/include/__ranges/reverse_view.h @@ -29,6 +29,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/single_view.h b/libcxx/include/__ranges/single_view.h --- a/libcxx/include/__ranges/single_view.h +++ b/libcxx/include/__ranges/single_view.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/size.h b/libcxx/include/__ranges/size.h --- a/libcxx/include/__ranges/size.h +++ b/libcxx/include/__ranges/size.h @@ -20,6 +20,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/subrange.h b/libcxx/include/__ranges/subrange.h --- a/libcxx/include/__ranges/subrange.h +++ b/libcxx/include/__ranges/subrange.h @@ -32,6 +32,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/take_view.h b/libcxx/include/__ranges/take_view.h --- a/libcxx/include/__ranges/take_view.h +++ b/libcxx/include/__ranges/take_view.h @@ -27,6 +27,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__ranges/transform_view.h b/libcxx/include/__ranges/transform_view.h --- a/libcxx/include/__ranges/transform_view.h +++ b/libcxx/include/__ranges/transform_view.h @@ -37,6 +37,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/view_interface.h b/libcxx/include/__ranges/view_interface.h --- a/libcxx/include/__ranges/view_interface.h +++ b/libcxx/include/__ranges/view_interface.h @@ -24,6 +24,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__ranges/views.h b/libcxx/include/__ranges/views.h --- a/libcxx/include/__ranges/views.h +++ b/libcxx/include/__ranges/views.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__split_buffer b/libcxx/include/__split_buffer --- a/libcxx/include/__split_buffer +++ b/libcxx/include/__split_buffer @@ -17,6 +17,8 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__std_stream b/libcxx/include/__std_stream --- a/libcxx/include/__std_stream +++ b/libcxx/include/__std_stream @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__string b/libcxx/include/__string --- a/libcxx/include/__string +++ b/libcxx/include/__string @@ -34,6 +34,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__thread/poll_with_backoff.h b/libcxx/include/__thread/poll_with_backoff.h --- a/libcxx/include/__thread/poll_with_backoff.h +++ b/libcxx/include/__thread/poll_with_backoff.h @@ -19,6 +19,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__thread/timed_backoff_policy.h b/libcxx/include/__thread/timed_backoff_policy.h --- a/libcxx/include/__thread/timed_backoff_policy.h +++ b/libcxx/include/__thread/timed_backoff_policy.h @@ -18,6 +18,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__threading_support b/libcxx/include/__threading_support --- a/libcxx/include/__threading_support +++ b/libcxx/include/__threading_support @@ -25,6 +25,10 @@ #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER # pragma GCC system_header +# pragma clang include_instead() +# pragma clang include_instead() +# pragma clang include_instead() +# pragma clang include_instead() #endif #if defined(_LIBCPP_HAS_THREAD_API_EXTERNAL) diff --git a/libcxx/include/__tree b/libcxx/include/__tree --- a/libcxx/include/__tree +++ b/libcxx/include/__tree @@ -20,6 +20,8 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__tuple b/libcxx/include/__tuple --- a/libcxx/include/__tuple +++ b/libcxx/include/__tuple @@ -16,6 +16,8 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() +# pragma clang include_instead() #endif diff --git a/libcxx/include/__utility/as_const.h b/libcxx/include/__utility/as_const.h --- a/libcxx/include/__utility/as_const.h +++ b/libcxx/include/__utility/as_const.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/auto_cast.h b/libcxx/include/__utility/auto_cast.h --- a/libcxx/include/__utility/auto_cast.h +++ b/libcxx/include/__utility/auto_cast.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif #define _LIBCPP_AUTO_CAST(expr) static_cast::type>(expr) diff --git a/libcxx/include/__utility/cmp.h b/libcxx/include/__utility/cmp.h --- a/libcxx/include/__utility/cmp.h +++ b/libcxx/include/__utility/cmp.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_PUSH_MACROS diff --git a/libcxx/include/__utility/declval.h b/libcxx/include/__utility/declval.h --- a/libcxx/include/__utility/declval.h +++ b/libcxx/include/__utility/declval.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/exchange.h b/libcxx/include/__utility/exchange.h --- a/libcxx/include/__utility/exchange.h +++ b/libcxx/include/__utility/exchange.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/forward.h b/libcxx/include/__utility/forward.h --- a/libcxx/include/__utility/forward.h +++ b/libcxx/include/__utility/forward.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/in_place.h b/libcxx/include/__utility/in_place.h --- a/libcxx/include/__utility/in_place.h +++ b/libcxx/include/__utility/in_place.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/integer_sequence.h b/libcxx/include/__utility/integer_sequence.h --- a/libcxx/include/__utility/integer_sequence.h +++ b/libcxx/include/__utility/integer_sequence.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/move.h b/libcxx/include/__utility/move.h --- a/libcxx/include/__utility/move.h +++ b/libcxx/include/__utility/move.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/pair.h b/libcxx/include/__utility/pair.h --- a/libcxx/include/__utility/pair.h +++ b/libcxx/include/__utility/pair.h @@ -22,6 +22,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/piecewise_construct.h b/libcxx/include/__utility/piecewise_construct.h --- a/libcxx/include/__utility/piecewise_construct.h +++ b/libcxx/include/__utility/piecewise_construct.h @@ -13,6 +13,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/priority_tag.h b/libcxx/include/__utility/priority_tag.h --- a/libcxx/include/__utility/priority_tag.h +++ b/libcxx/include/__utility/priority_tag.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/rel_ops.h b/libcxx/include/__utility/rel_ops.h --- a/libcxx/include/__utility/rel_ops.h +++ b/libcxx/include/__utility/rel_ops.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/swap.h b/libcxx/include/__utility/swap.h --- a/libcxx/include/__utility/swap.h +++ b/libcxx/include/__utility/swap.h @@ -17,6 +17,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/to_underlying.h b/libcxx/include/__utility/to_underlying.h --- a/libcxx/include/__utility/to_underlying.h +++ b/libcxx/include/__utility/to_underlying.h @@ -15,6 +15,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/transaction.h b/libcxx/include/__utility/transaction.h --- a/libcxx/include/__utility/transaction.h +++ b/libcxx/include/__utility/transaction.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__utility/unreachable.h b/libcxx/include/__utility/unreachable.h --- a/libcxx/include/__utility/unreachable.h +++ b/libcxx/include/__utility/unreachable.h @@ -14,6 +14,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/include/__variant/monostate.h b/libcxx/include/__variant/monostate.h --- a/libcxx/include/__variant/monostate.h +++ b/libcxx/include/__variant/monostate.h @@ -16,6 +16,7 @@ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header +# pragma clang include_instead() #endif _LIBCPP_BEGIN_NAMESPACE_STD diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/adjacent_find.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/adjacent_find.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/adjacent_find.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/adjacent_find.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/adjacent_find.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/adjacent_find.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/adjacent_find.h'}} #include <__algorithm/adjacent_find.h> +// expected-error@-1 {{header '<__algorithm/adjacent_find.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/adjacent_find.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/adjacent_find.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/adjacent_find.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/adjacent_find.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/all_of.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/all_of.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/all_of.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/all_of.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/all_of.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/all_of.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/all_of.h'}} #include <__algorithm/all_of.h> +// expected-error@-1 {{header '<__algorithm/all_of.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/all_of.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/all_of.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/all_of.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/all_of.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/any_of.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/any_of.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/any_of.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/any_of.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/any_of.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/any_of.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/any_of.h'}} #include <__algorithm/any_of.h> +// expected-error@-1 {{header '<__algorithm/any_of.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/any_of.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/any_of.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/any_of.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/any_of.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/binary_search.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/binary_search.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/binary_search.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/binary_search.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/binary_search.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/binary_search.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/binary_search.h'}} #include <__algorithm/binary_search.h> +// expected-error@-1 {{header '<__algorithm/binary_search.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/binary_search.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/binary_search.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/binary_search.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/binary_search.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/clamp.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/clamp.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/clamp.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/clamp.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/clamp.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/clamp.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/clamp.h'}} #include <__algorithm/clamp.h> +// expected-error@-1 {{header '<__algorithm/clamp.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/clamp.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/clamp.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/clamp.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/clamp.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/comp.h'}} #include <__algorithm/comp.h> +// expected-error@-1 {{header '<__algorithm/comp.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp_ref_type.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp_ref_type.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp_ref_type.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp_ref_type.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp_ref_type.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp_ref_type.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/comp_ref_type.h'}} #include <__algorithm/comp_ref_type.h> +// expected-error@-1 {{header '<__algorithm/comp_ref_type.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp_ref_type.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp_ref_type.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp_ref_type.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/comp_ref_type.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/copy.h'}} #include <__algorithm/copy.h> +// expected-error@-1 {{header '<__algorithm/copy.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_backward.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_backward.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_backward.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_backward.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_backward.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_backward.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/copy_backward.h'}} #include <__algorithm/copy_backward.h> +// expected-error@-1 {{header '<__algorithm/copy_backward.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_backward.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_backward.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_backward.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_backward.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_if.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_if.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_if.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_if.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/copy_if.h'}} #include <__algorithm/copy_if.h> +// expected-error@-1 {{header '<__algorithm/copy_if.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_if.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_if.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_n.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_n.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_n.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_n.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_n.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_n.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/copy_n.h'}} #include <__algorithm/copy_n.h> +// expected-error@-1 {{header '<__algorithm/copy_n.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_n.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_n.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_n.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/copy_n.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/count.h'}} #include <__algorithm/count.h> +// expected-error@-1 {{header '<__algorithm/count.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count_if.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count_if.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count_if.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count_if.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/count_if.h'}} #include <__algorithm/count_if.h> +// expected-error@-1 {{header '<__algorithm/count_if.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count_if.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/count_if.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/equal.h'}} #include <__algorithm/equal.h> +// expected-error@-1 {{header '<__algorithm/equal.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal_range.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal_range.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal_range.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal_range.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal_range.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal_range.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/equal_range.h'}} #include <__algorithm/equal_range.h> +// expected-error@-1 {{header '<__algorithm/equal_range.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal_range.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal_range.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal_range.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/equal_range.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/fill.h'}} #include <__algorithm/fill.h> +// expected-error@-1 {{header '<__algorithm/fill.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill_n.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill_n.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill_n.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill_n.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill_n.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill_n.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/fill_n.h'}} #include <__algorithm/fill_n.h> +// expected-error@-1 {{header '<__algorithm/fill_n.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill_n.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill_n.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill_n.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/fill_n.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/find.h'}} #include <__algorithm/find.h> +// expected-error@-1 {{header '<__algorithm/find.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_end.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_end.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_end.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_end.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_end.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_end.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/find_end.h'}} #include <__algorithm/find_end.h> +// expected-error@-1 {{header '<__algorithm/find_end.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_end.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_end.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_end.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_end.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_first_of.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_first_of.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_first_of.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_first_of.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_first_of.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_first_of.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/find_first_of.h'}} #include <__algorithm/find_first_of.h> +// expected-error@-1 {{header '<__algorithm/find_first_of.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_first_of.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_first_of.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_first_of.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_first_of.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/find_if.h'}} #include <__algorithm/find_if.h> +// expected-error@-1 {{header '<__algorithm/find_if.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if_not.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if_not.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if_not.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if_not.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if_not.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if_not.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/find_if_not.h'}} #include <__algorithm/find_if_not.h> +// expected-error@-1 {{header '<__algorithm/find_if_not.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if_not.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if_not.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if_not.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/find_if_not.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/for_each.h'}} #include <__algorithm/for_each.h> +// expected-error@-1 {{header '<__algorithm/for_each.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each_n.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each_n.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each_n.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_context.h'}} -#include <__format/format_context.h> +#include <__algorithm/for_each_n.h> +// expected-error@-1 {{header '<__algorithm/for_each_n.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each_n.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each_n.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each_n.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/for_each_n.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/generate.h'}} #include <__algorithm/generate.h> +// expected-error@-1 {{header '<__algorithm/generate.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate_n.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate_n.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate_n.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_context.h'}} -#include <__format/format_context.h> +#include <__algorithm/generate_n.h> +// expected-error@-1 {{header '<__algorithm/generate_n.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate_n.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate_n.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate_n.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/generate_n.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/half_positive.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/half_positive.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/half_positive.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/half_positive.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/half_positive.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/half_positive.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/half_positive.h'}} #include <__algorithm/half_positive.h> +// expected-error@-1 {{header '<__algorithm/half_positive.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/half_positive.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/half_positive.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/half_positive.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/half_positive.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_found_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_found_result.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_found_result.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_found_result.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_found_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_found_result.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/in_found_result.h'}} #include <__algorithm/in_found_result.h> +// expected-error@-1 {{header '<__algorithm/in_found_result.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_found_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_found_result.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_found_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_found_result.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_fun_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_fun_result.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_fun_result.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_fun_result.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_fun_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_fun_result.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/in_fun_result.h'}} #include <__algorithm/in_fun_result.h> +// expected-error@-1 {{header '<__algorithm/in_fun_result.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_fun_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_fun_result.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_fun_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_fun_result.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_out_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_out_result.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_out_result.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_out_result.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_out_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_out_result.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/in_in_out_result.h'}} #include <__algorithm/in_in_out_result.h> +// expected-error@-1 {{header '<__algorithm/in_in_out_result.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_out_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_out_result.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_out_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_out_result.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_result.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_result.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_result.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_result.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/in_in_result.h'}} #include <__algorithm/in_in_result.h> +// expected-error@-1 {{header '<__algorithm/in_in_result.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_result.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_in_result.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_out_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_out_result.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_out_result.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_out_result.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_out_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_out_result.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/in_out_out_result.h'}} #include <__algorithm/in_out_out_result.h> +// expected-error@-1 {{header '<__algorithm/in_out_out_result.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_out_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_out_result.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_out_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_out_result.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_result.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_result.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_result.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_result.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/in_out_result.h'}} #include <__algorithm/in_out_result.h> +// expected-error@-1 {{header '<__algorithm/in_out_result.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_result.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/in_out_result.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/includes.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/includes.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/includes.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/includes.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/includes.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/includes.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/includes.h'}} #include <__algorithm/includes.h> +// expected-error@-1 {{header '<__algorithm/includes.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/includes.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/includes.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/includes.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/includes.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/inplace_merge.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/inplace_merge.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/inplace_merge.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/inplace_merge.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/inplace_merge.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/inplace_merge.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/inplace_merge.h'}} #include <__algorithm/inplace_merge.h> +// expected-error@-1 {{header '<__algorithm/inplace_merge.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/inplace_merge.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/inplace_merge.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/inplace_merge.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/inplace_merge.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/is_heap.h'}} #include <__algorithm/is_heap.h> +// expected-error@-1 {{header '<__algorithm/is_heap.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap_until.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap_until.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap_until.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap_until.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap_until.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap_until.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/is_heap_until.h'}} #include <__algorithm/is_heap_until.h> +// expected-error@-1 {{header '<__algorithm/is_heap_until.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap_until.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap_until.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap_until.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_heap_until.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_partitioned.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_partitioned.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_partitioned.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_partitioned.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_partitioned.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_partitioned.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/is_partitioned.h'}} #include <__algorithm/is_partitioned.h> +// expected-error@-1 {{header '<__algorithm/is_partitioned.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_partitioned.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_partitioned.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_partitioned.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_partitioned.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_permutation.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_permutation.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_permutation.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_permutation.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_permutation.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_permutation.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/is_permutation.h'}} #include <__algorithm/is_permutation.h> +// expected-error@-1 {{header '<__algorithm/is_permutation.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_permutation.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_permutation.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_permutation.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_permutation.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/is_sorted.h'}} #include <__algorithm/is_sorted.h> +// expected-error@-1 {{header '<__algorithm/is_sorted.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted_until.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted_until.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted_until.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted_until.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted_until.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted_until.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/is_sorted_until.h'}} #include <__algorithm/is_sorted_until.h> +// expected-error@-1 {{header '<__algorithm/is_sorted_until.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted_until.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted_until.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted_until.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/is_sorted_until.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/iter_swap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/iter_swap.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/iter_swap.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/iter_swap.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/iter_swap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/iter_swap.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/iter_swap.h'}} #include <__algorithm/iter_swap.h> +// expected-error@-1 {{header '<__algorithm/iter_swap.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/iter_swap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/iter_swap.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/iter_swap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/iter_swap.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lexicographical_compare.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lexicographical_compare.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lexicographical_compare.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lexicographical_compare.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lexicographical_compare.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lexicographical_compare.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/lexicographical_compare.h'}} #include <__algorithm/lexicographical_compare.h> +// expected-error@-1 {{header '<__algorithm/lexicographical_compare.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lexicographical_compare.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lexicographical_compare.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lexicographical_compare.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lexicographical_compare.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lower_bound.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lower_bound.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lower_bound.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lower_bound.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lower_bound.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lower_bound.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/lower_bound.h'}} #include <__algorithm/lower_bound.h> +// expected-error@-1 {{header '<__algorithm/lower_bound.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lower_bound.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lower_bound.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lower_bound.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/lower_bound.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/make_heap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/make_heap.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/make_heap.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/make_heap.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/make_heap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/make_heap.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/make_heap.h'}} #include <__algorithm/make_heap.h> +// expected-error@-1 {{header '<__algorithm/make_heap.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/make_heap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/make_heap.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/make_heap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/make_heap.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/max.h'}} #include <__algorithm/max.h> +// expected-error@-1 {{header '<__algorithm/max.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max_element.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max_element.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max_element.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max_element.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max_element.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max_element.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/max_element.h'}} #include <__algorithm/max_element.h> +// expected-error@-1 {{header '<__algorithm/max_element.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max_element.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max_element.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max_element.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/max_element.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/merge.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/merge.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/merge.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/merge.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/merge.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/merge.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/merge.h'}} #include <__algorithm/merge.h> +// expected-error@-1 {{header '<__algorithm/merge.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/merge.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/merge.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/merge.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/merge.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/min.h'}} #include <__algorithm/min.h> +// expected-error@-1 {{header '<__algorithm/min.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_element.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_element.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_element.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_element.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_element.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_element.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/min_element.h'}} #include <__algorithm/min_element.h> +// expected-error@-1 {{header '<__algorithm/min_element.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_element.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_element.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_element.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_element.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_max_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_max_result.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_max_result.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_max_result.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_max_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_max_result.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/min_max_result.h'}} #include <__algorithm/min_max_result.h> +// expected-error@-1 {{header '<__algorithm/min_max_result.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_max_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_max_result.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_max_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/min_max_result.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/minmax.h'}} #include <__algorithm/minmax.h> +// expected-error@-1 {{header '<__algorithm/minmax.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax_element.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax_element.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax_element.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax_element.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax_element.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax_element.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/minmax_element.h'}} #include <__algorithm/minmax_element.h> +// expected-error@-1 {{header '<__algorithm/minmax_element.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax_element.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax_element.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax_element.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/minmax_element.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/mismatch.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/mismatch.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/mismatch.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/mismatch.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/mismatch.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/mismatch.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/mismatch.h'}} #include <__algorithm/mismatch.h> +// expected-error@-1 {{header '<__algorithm/mismatch.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/mismatch.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/mismatch.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/mismatch.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/mismatch.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/move.h'}} #include <__algorithm/move.h> +// expected-error@-1 {{header '<__algorithm/move.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move_backward.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move_backward.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move_backward.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move_backward.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move_backward.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move_backward.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/move_backward.h'}} #include <__algorithm/move_backward.h> +// expected-error@-1 {{header '<__algorithm/move_backward.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move_backward.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move_backward.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move_backward.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/move_backward.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/next_permutation.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/next_permutation.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/next_permutation.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/next_permutation.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/next_permutation.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/next_permutation.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/next_permutation.h'}} #include <__algorithm/next_permutation.h> +// expected-error@-1 {{header '<__algorithm/next_permutation.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/next_permutation.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/next_permutation.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/next_permutation.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/next_permutation.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/none_of.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/none_of.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/none_of.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/none_of.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/none_of.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/none_of.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/none_of.h'}} #include <__algorithm/none_of.h> +// expected-error@-1 {{header '<__algorithm/none_of.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/none_of.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/none_of.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/none_of.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/none_of.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/nth_element.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/nth_element.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/nth_element.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/nth_element.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/nth_element.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/nth_element.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/nth_element.h'}} #include <__algorithm/nth_element.h> +// expected-error@-1 {{header '<__algorithm/nth_element.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/nth_element.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/nth_element.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/nth_element.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/nth_element.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/partial_sort.h'}} #include <__algorithm/partial_sort.h> +// expected-error@-1 {{header '<__algorithm/partial_sort.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort_copy.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort_copy.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort_copy.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort_copy.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/partial_sort_copy.h'}} #include <__algorithm/partial_sort_copy.h> +// expected-error@-1 {{header '<__algorithm/partial_sort_copy.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort_copy.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partial_sort_copy.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/partition.h'}} #include <__algorithm/partition.h> +// expected-error@-1 {{header '<__algorithm/partition.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_copy.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_copy.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_copy.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_copy.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/partition_copy.h'}} #include <__algorithm/partition_copy.h> +// expected-error@-1 {{header '<__algorithm/partition_copy.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_copy.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_copy.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_point.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_point.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_point.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_point.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_point.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_point.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/partition_point.h'}} #include <__algorithm/partition_point.h> +// expected-error@-1 {{header '<__algorithm/partition_point.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_point.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_point.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_point.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/partition_point.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/pop_heap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/pop_heap.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/pop_heap.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/pop_heap.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/pop_heap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/pop_heap.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/pop_heap.h'}} #include <__algorithm/pop_heap.h> +// expected-error@-1 {{header '<__algorithm/pop_heap.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/pop_heap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/pop_heap.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/pop_heap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/pop_heap.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/prev_permutation.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/prev_permutation.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/prev_permutation.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/prev_permutation.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/prev_permutation.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/prev_permutation.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/prev_permutation.h'}} #include <__algorithm/prev_permutation.h> +// expected-error@-1 {{header '<__algorithm/prev_permutation.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/prev_permutation.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/prev_permutation.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/prev_permutation.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/prev_permutation.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/push_heap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/push_heap.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/push_heap.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/push_heap.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/push_heap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/push_heap.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/push_heap.h'}} #include <__algorithm/push_heap.h> +// expected-error@-1 {{header '<__algorithm/push_heap.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/push_heap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/push_heap.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/push_heap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/push_heap.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_min_element.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_min_element.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_min_element.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_min_element.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_min_element.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_min_element.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_min_element.h'}} #include <__algorithm/ranges_min_element.h> +// expected-error@-1 {{header '<__algorithm/ranges_min_element.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_min_element.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_min_element.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_min_element.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_min_element.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_swap_ranges.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_swap_ranges.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_swap_ranges.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_swap_ranges.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_swap_ranges.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_swap_ranges.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_swap_ranges.h'}} #include <__algorithm/ranges_swap_ranges.h> +// expected-error@-1 {{header '<__algorithm/ranges_swap_ranges.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_swap_ranges.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_swap_ranges.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_swap_ranges.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/ranges_swap_ranges.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/remove.h'}} #include <__algorithm/remove.h> +// expected-error@-1 {{header '<__algorithm/remove.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/remove_copy.h'}} #include <__algorithm/remove_copy.h> +// expected-error@-1 {{header '<__algorithm/remove_copy.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy_if.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy_if.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy_if.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy_if.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/remove_copy_if.h'}} #include <__algorithm/remove_copy_if.h> +// expected-error@-1 {{header '<__algorithm/remove_copy_if.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy_if.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_copy_if.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_if.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_if.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_if.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_if.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/remove_if.h'}} #include <__algorithm/remove_if.h> +// expected-error@-1 {{header '<__algorithm/remove_if.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_if.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/remove_if.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/replace.h'}} #include <__algorithm/replace.h> +// expected-error@-1 {{header '<__algorithm/replace.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/replace_copy.h'}} #include <__algorithm/replace_copy.h> +// expected-error@-1 {{header '<__algorithm/replace_copy.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy_if.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy_if.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy_if.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy_if.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/replace_copy_if.h'}} #include <__algorithm/replace_copy_if.h> +// expected-error@-1 {{header '<__algorithm/replace_copy_if.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy_if.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_copy_if.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_if.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_if.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_if.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_context.h'}} -#include <__format/format_context.h> +#include <__algorithm/replace_if.h> +// expected-error@-1 {{header '<__algorithm/replace_if.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_if.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_if.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_if.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/replace_if.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/reverse.h'}} #include <__algorithm/reverse.h> +// expected-error@-1 {{header '<__algorithm/reverse.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse_copy.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse_copy.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse_copy.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse_copy.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/reverse_copy.h'}} #include <__algorithm/reverse_copy.h> +// expected-error@-1 {{header '<__algorithm/reverse_copy.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse_copy.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/reverse_copy.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/rotate.h'}} #include <__algorithm/rotate.h> +// expected-error@-1 {{header '<__algorithm/rotate.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate_copy.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate_copy.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate_copy.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate_copy.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/rotate_copy.h'}} #include <__algorithm/rotate_copy.h> +// expected-error@-1 {{header '<__algorithm/rotate_copy.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate_copy.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/rotate_copy.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sample.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sample.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sample.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sample.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sample.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sample.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/sample.h'}} #include <__algorithm/sample.h> +// expected-error@-1 {{header '<__algorithm/sample.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sample.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sample.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sample.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sample.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/search.h'}} #include <__algorithm/search.h> +// expected-error@-1 {{header '<__algorithm/search.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/search_n.h'}} #include <__algorithm/search_n.h> +// expected-error@-1 {{header '<__algorithm/search_n.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_difference.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_difference.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_difference.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_difference.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_difference.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_difference.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/set_difference.h'}} #include <__algorithm/set_difference.h> +// expected-error@-1 {{header '<__algorithm/set_difference.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_difference.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_difference.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_difference.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_difference.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_intersection.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_intersection.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_intersection.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_intersection.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_intersection.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_intersection.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/set_intersection.h'}} #include <__algorithm/set_intersection.h> +// expected-error@-1 {{header '<__algorithm/set_intersection.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_intersection.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_intersection.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_intersection.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_intersection.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_symmetric_difference.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_symmetric_difference.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_symmetric_difference.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_symmetric_difference.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_symmetric_difference.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_symmetric_difference.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/set_symmetric_difference.h'}} #include <__algorithm/set_symmetric_difference.h> +// expected-error@-1 {{header '<__algorithm/set_symmetric_difference.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_symmetric_difference.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_symmetric_difference.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_symmetric_difference.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_symmetric_difference.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_union.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_union.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_union.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_union.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_union.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_union.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/set_union.h'}} #include <__algorithm/set_union.h> +// expected-error@-1 {{header '<__algorithm/set_union.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_union.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_union.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_union.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/set_union.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_left.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_left.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_left.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_context.h'}} -#include <__format/format_context.h> +#include <__algorithm/shift_left.h> +// expected-error@-1 {{header '<__algorithm/shift_left.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_left.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_left.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_left.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_left.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_right.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_right.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_right.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_right.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_right.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_right.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/shift_right.h'}} #include <__algorithm/shift_right.h> +// expected-error@-1 {{header '<__algorithm/shift_right.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_right.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_right.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_right.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shift_right.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shuffle.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shuffle.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shuffle.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shuffle.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shuffle.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shuffle.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/shuffle.h'}} #include <__algorithm/shuffle.h> +// expected-error@-1 {{header '<__algorithm/shuffle.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shuffle.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shuffle.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shuffle.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/shuffle.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sift_down.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sift_down.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sift_down.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sift_down.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sift_down.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sift_down.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/sift_down.h'}} #include <__algorithm/sift_down.h> +// expected-error@-1 {{header '<__algorithm/sift_down.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sift_down.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sift_down.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sift_down.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sift_down.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/sort.h'}} #include <__algorithm/sort.h> +// expected-error@-1 {{header '<__algorithm/sort.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort_heap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort_heap.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort_heap.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort_heap.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort_heap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort_heap.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/sort_heap.h'}} #include <__algorithm/sort_heap.h> +// expected-error@-1 {{header '<__algorithm/sort_heap.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort_heap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort_heap.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort_heap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/sort_heap.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_partition.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_partition.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_partition.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_partition.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_partition.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_partition.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/stable_partition.h'}} #include <__algorithm/stable_partition.h> +// expected-error@-1 {{header '<__algorithm/stable_partition.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_partition.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_partition.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_partition.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_partition.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_sort.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_sort.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_sort.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_sort.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_sort.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_sort.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/stable_sort.h'}} #include <__algorithm/stable_sort.h> +// expected-error@-1 {{header '<__algorithm/stable_sort.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_sort.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_sort.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_sort.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/stable_sort.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/swap_ranges.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/swap_ranges.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/swap_ranges.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/swap_ranges.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/swap_ranges.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/swap_ranges.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/swap_ranges.h'}} #include <__algorithm/swap_ranges.h> +// expected-error@-1 {{header '<__algorithm/swap_ranges.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/swap_ranges.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/swap_ranges.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/swap_ranges.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/swap_ranges.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/transform.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/transform.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/transform.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/transform.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/transform.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/transform.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/transform.h'}} #include <__algorithm/transform.h> +// expected-error@-1 {{header '<__algorithm/transform.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/transform.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/transform.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/transform.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/transform.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/unique.h'}} #include <__algorithm/unique.h> +// expected-error@-1 {{header '<__algorithm/unique.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique_copy.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique_copy.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique_copy.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique_copy.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/unique_copy.h'}} #include <__algorithm/unique_copy.h> +// expected-error@-1 {{header '<__algorithm/unique_copy.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique_copy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique_copy.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique_copy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unique_copy.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unwrap_iter.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unwrap_iter.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unwrap_iter.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unwrap_iter.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unwrap_iter.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unwrap_iter.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/unwrap_iter.h'}} #include <__algorithm/unwrap_iter.h> +// expected-error@-1 {{header '<__algorithm/unwrap_iter.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unwrap_iter.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unwrap_iter.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unwrap_iter.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/unwrap_iter.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/upper_bound.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/upper_bound.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/upper_bound.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/algorithm/upper_bound.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/upper_bound.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/upper_bound.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/upper_bound.h'}} #include <__algorithm/upper_bound.h> +// expected-error@-1 {{header '<__algorithm/upper_bound.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/upper_bound.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/upper_bound.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/upper_bound.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/upper_bound.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/availability.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/availability.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/availability.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/availability.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/bit/bit_cast.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/bit/bit_cast.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/bit/bit_cast.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/bit/bit_cast.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/bit/bit_cast.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/bit/bit_cast.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__bit/bit_cast.h'}} #include <__bit/bit_cast.h> +// expected-error@-1 {{header '<__bit/bit_cast.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/bit/bit_cast.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/bit/bit_cast.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/bit/bit_cast.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/bit/bit_cast.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/bit/byteswap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/bit/byteswap.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/bit/byteswap.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/bit/byteswap.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/bit/byteswap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/bit/byteswap.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__bit/byteswap.h'}} #include <__bit/byteswap.h> +// expected-error@-1 {{header '<__bit/byteswap.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/bit/byteswap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/bit/byteswap.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/bit/byteswap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/bit/byteswap.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/bit_reference.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/bit_reference.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/bit_reference.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/bit_reference.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/bit_reference.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/bit_reference.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__bit_reference'}} #include <__bit_reference> +// expected-error@-1 {{header '<__bit_reference>' is an implementation detail; #include either '' or '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/bit_reference.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/bit_reference.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/bit_reference.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/bit_reference.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/bits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/bits.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/bits.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/bits.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/bits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/bits.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__bits'}} #include <__bits> +// expected-error@-1 {{header '<__bits>' is an implementation detail; #include one of {'', '', '', '', '', '', '', ''} instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/bits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/bits.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/bits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/bits.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/chars_format.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/chars_format.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/charconv/chars_format.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/charconv/chars_format.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/chars_format.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/chars_format.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__charconv/chars_format.h'}} #include <__charconv/chars_format.h> +// expected-error@-1 {{header '<__charconv/chars_format.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/chars_format.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/chars_format.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/chars_format.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/chars_format.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/from_chars_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/from_chars_result.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/charconv/from_chars_result.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/charconv/from_chars_result.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/from_chars_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/from_chars_result.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__charconv/from_chars_result.h'}} #include <__charconv/from_chars_result.h> +// expected-error@-1 {{header '<__charconv/from_chars_result.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/from_chars_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/from_chars_result.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/from_chars_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/from_chars_result.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/to_chars_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/to_chars_result.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/charconv/to_chars_result.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/charconv/to_chars_result.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/to_chars_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/to_chars_result.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__charconv/to_chars_result.h'}} #include <__charconv/to_chars_result.h> +// expected-error@-1 {{header '<__charconv/to_chars_result.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/to_chars_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/to_chars_result.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/charconv/to_chars_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/charconv/to_chars_result.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/calendar.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/calendar.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/chrono/calendar.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/chrono/calendar.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/calendar.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/calendar.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__chrono/calendar.h'}} #include <__chrono/calendar.h> +// expected-error@-1 {{header '<__chrono/calendar.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/calendar.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/calendar.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/calendar.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/calendar.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/convert_to_timespec.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/convert_to_timespec.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/chrono/convert_to_timespec.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/chrono/convert_to_timespec.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/convert_to_timespec.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/convert_to_timespec.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__chrono/convert_to_timespec.h'}} #include <__chrono/convert_to_timespec.h> +// expected-error@-1 {{header '<__chrono/convert_to_timespec.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/convert_to_timespec.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/convert_to_timespec.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/convert_to_timespec.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/convert_to_timespec.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/duration.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/duration.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/chrono/duration.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/chrono/duration.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/duration.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/duration.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__chrono/duration.h'}} #include <__chrono/duration.h> +// expected-error@-1 {{header '<__chrono/duration.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/duration.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/duration.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/duration.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/duration.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/file_clock.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/file_clock.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/chrono/file_clock.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/chrono/file_clock.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/file_clock.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/file_clock.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__chrono/file_clock.h'}} #include <__chrono/file_clock.h> +// expected-error@-1 {{header '<__chrono/file_clock.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/file_clock.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/file_clock.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/file_clock.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/file_clock.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/high_resolution_clock.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/high_resolution_clock.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/chrono/high_resolution_clock.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/chrono/high_resolution_clock.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/high_resolution_clock.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/high_resolution_clock.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__chrono/high_resolution_clock.h'}} #include <__chrono/high_resolution_clock.h> +// expected-error@-1 {{header '<__chrono/high_resolution_clock.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/high_resolution_clock.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/high_resolution_clock.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/high_resolution_clock.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/high_resolution_clock.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/steady_clock.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/steady_clock.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/chrono/steady_clock.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/chrono/steady_clock.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/steady_clock.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/steady_clock.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__chrono/steady_clock.h'}} #include <__chrono/steady_clock.h> +// expected-error@-1 {{header '<__chrono/steady_clock.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/steady_clock.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/steady_clock.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/steady_clock.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/steady_clock.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/system_clock.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/system_clock.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/chrono/system_clock.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/chrono/system_clock.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/system_clock.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/system_clock.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__chrono/system_clock.h'}} #include <__chrono/system_clock.h> +// expected-error@-1 {{header '<__chrono/system_clock.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/system_clock.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/system_clock.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/system_clock.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/system_clock.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/time_point.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/time_point.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/chrono/time_point.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/chrono/time_point.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/time_point.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/time_point.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__chrono/time_point.h'}} #include <__chrono/time_point.h> +// expected-error@-1 {{header '<__chrono/time_point.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/time_point.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/time_point.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/chrono/time_point.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/chrono/time_point.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/common_comparison_category.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/common_comparison_category.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/common_comparison_category.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/common_comparison_category.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/common_comparison_category.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/common_comparison_category.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/common_comparison_category.h'}} #include <__compare/common_comparison_category.h> +// expected-error@-1 {{header '<__compare/common_comparison_category.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/common_comparison_category.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/common_comparison_category.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/common_comparison_category.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/common_comparison_category.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_partial_order_fallback.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_partial_order_fallback.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_partial_order_fallback.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_partial_order_fallback.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_partial_order_fallback.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_partial_order_fallback.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/compare_partial_order_fallback.h'}} #include <__compare/compare_partial_order_fallback.h> +// expected-error@-1 {{header '<__compare/compare_partial_order_fallback.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_partial_order_fallback.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_partial_order_fallback.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_partial_order_fallback.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_partial_order_fallback.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_strong_order_fallback.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_strong_order_fallback.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_strong_order_fallback.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_strong_order_fallback.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_strong_order_fallback.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_strong_order_fallback.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/compare_strong_order_fallback.h'}} #include <__compare/compare_strong_order_fallback.h> +// expected-error@-1 {{header '<__compare/compare_strong_order_fallback.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_strong_order_fallback.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_strong_order_fallback.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_strong_order_fallback.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_strong_order_fallback.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/compare_three_way.h'}} #include <__compare/compare_three_way.h> +// expected-error@-1 {{header '<__compare/compare_three_way.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way_result.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way_result.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way_result.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way_result.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/compare_three_way_result.h'}} #include <__compare/compare_three_way_result.h> +// expected-error@-1 {{header '<__compare/compare_three_way_result.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way_result.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_three_way_result.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_weak_order_fallback.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_weak_order_fallback.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_weak_order_fallback.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_weak_order_fallback.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_weak_order_fallback.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_weak_order_fallback.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/compare_weak_order_fallback.h'}} #include <__compare/compare_weak_order_fallback.h> +// expected-error@-1 {{header '<__compare/compare_weak_order_fallback.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_weak_order_fallback.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_weak_order_fallback.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_weak_order_fallback.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/compare_weak_order_fallback.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/is_eq.h'}} #include <__compare/is_eq.h> +// expected-error@-1 {{header '<__compare/is_eq.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/is_eq.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/ordering.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/ordering.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/ordering.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/ordering.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/ordering.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/ordering.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/ordering.h'}} #include <__compare/ordering.h> +// expected-error@-1 {{header '<__compare/ordering.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/ordering.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/ordering.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/ordering.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/ordering.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/partial_order.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/partial_order.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/partial_order.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/partial_order.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/partial_order.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/partial_order.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/partial_order.h'}} #include <__compare/partial_order.h> +// expected-error@-1 {{header '<__compare/partial_order.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/partial_order.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/partial_order.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/partial_order.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/partial_order.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/strong_order.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/strong_order.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/strong_order.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/strong_order.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/strong_order.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/strong_order.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/strong_order.h'}} #include <__compare/strong_order.h> +// expected-error@-1 {{header '<__compare/strong_order.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/strong_order.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/strong_order.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/strong_order.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/strong_order.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/synth_three_way.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/synth_three_way.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/synth_three_way.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/synth_three_way.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/synth_three_way.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/synth_three_way.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/synth_three_way.h'}} #include <__compare/synth_three_way.h> +// expected-error@-1 {{header '<__compare/synth_three_way.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/synth_three_way.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/synth_three_way.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/synth_three_way.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/synth_three_way.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/three_way_comparable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/three_way_comparable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/compare/three_way_comparable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/three_way_comparable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/three_way_comparable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/three_way_comparable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__compare/three_way_comparable.h'}} #include <__compare/three_way_comparable.h> +// expected-error@-1 {{header '<__compare/three_way_comparable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/three_way_comparable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/three_way_comparable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/three_way_comparable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/three_way_comparable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/weak_order.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/compare/weak_order.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/algorithm/search_n.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/weak_order.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__algorithm/search_n.h'}} -#include <__algorithm/search_n.h> +#include <__compare/weak_order.h> +// expected-error@-1 {{header '<__compare/weak_order.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/compare/weak_order.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/compare/weak_order.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/compare/weak_order.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/compare/weak_order.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/arithmetic.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/arithmetic.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/arithmetic.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/arithmetic.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/arithmetic.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/arithmetic.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/arithmetic.h'}} #include <__concepts/arithmetic.h> +// expected-error@-1 {{header '<__concepts/arithmetic.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/arithmetic.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/arithmetic.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/arithmetic.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/arithmetic.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/assignable.h'}} #include <__concepts/assignable.h> +// expected-error@-1 {{header '<__concepts/assignable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/boolean_testable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/boolean_testable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/boolean_testable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/boolean_testable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/boolean_testable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/boolean_testable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/boolean_testable.h'}} #include <__concepts/boolean_testable.h> +// expected-error@-1 {{header '<__concepts/boolean_testable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/boolean_testable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/boolean_testable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/boolean_testable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/boolean_testable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/class_or_enum.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/class_or_enum.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/class_or_enum.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/class_or_enum.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/class_or_enum.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/class_or_enum.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/class_or_enum.h'}} #include <__concepts/class_or_enum.h> +// expected-error@-1 {{header '<__concepts/class_or_enum.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/class_or_enum.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/class_or_enum.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/class_or_enum.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/class_or_enum.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/common_reference_with.h'}} #include <__concepts/common_reference_with.h> +// expected-error@-1 {{header '<__concepts/common_reference_with.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_with.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_with.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_with.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_with.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_with.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_with.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/common_with.h'}} #include <__concepts/common_with.h> +// expected-error@-1 {{header '<__concepts/common_with.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_with.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_with.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_with.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_with.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/constructible.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/constructible.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/constructible.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/constructible.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/constructible.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/constructible.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/constructible.h'}} #include <__concepts/constructible.h> +// expected-error@-1 {{header '<__concepts/constructible.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/constructible.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/constructible.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/constructible.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/constructible.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/convertible_to.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/convertible_to.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/convertible_to.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/convertible_to.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/convertible_to.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/convertible_to.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/convertible_to.h'}} #include <__concepts/convertible_to.h> +// expected-error@-1 {{header '<__concepts/convertible_to.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/convertible_to.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/convertible_to.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/convertible_to.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/convertible_to.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/copyable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/copyable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/copyable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/copyable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/copyable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/copyable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/copyable.h'}} #include <__concepts/copyable.h> +// expected-error@-1 {{header '<__concepts/copyable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/copyable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/copyable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/copyable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/copyable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/derived_from.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/derived_from.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/derived_from.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/derived_from.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/derived_from.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/derived_from.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/derived_from.h'}} #include <__concepts/derived_from.h> +// expected-error@-1 {{header '<__concepts/derived_from.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/derived_from.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/derived_from.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/derived_from.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/derived_from.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/destructible.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/destructible.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/destructible.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/destructible.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/destructible.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/destructible.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/destructible.h'}} #include <__concepts/destructible.h> +// expected-error@-1 {{header '<__concepts/destructible.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/destructible.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/destructible.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/destructible.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/destructible.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/different_from.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/different_from.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/different_from.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/different_from.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/different_from.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/different_from.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/different_from.h'}} #include <__concepts/different_from.h> +// expected-error@-1 {{header '<__concepts/different_from.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/different_from.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/different_from.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/different_from.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/different_from.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/equality_comparable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/equality_comparable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/equality_comparable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/equality_comparable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/equality_comparable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/equality_comparable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/equality_comparable.h'}} #include <__concepts/equality_comparable.h> +// expected-error@-1 {{header '<__concepts/equality_comparable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/equality_comparable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/equality_comparable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/equality_comparable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/equality_comparable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/invocable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/invocable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/invocable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/invocable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/invocable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/invocable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/invocable.h'}} #include <__concepts/invocable.h> +// expected-error@-1 {{header '<__concepts/invocable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/invocable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/invocable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/invocable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/invocable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/movable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/movable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/movable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/movable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/movable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/movable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/movable.h'}} #include <__concepts/movable.h> +// expected-error@-1 {{header '<__concepts/movable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/movable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/movable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/movable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/movable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/predicate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/predicate.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/predicate.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/predicate.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/predicate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/predicate.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/predicate.h'}} #include <__concepts/predicate.h> +// expected-error@-1 {{header '<__concepts/predicate.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/predicate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/predicate.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/predicate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/predicate.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/regular.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/regular.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/regular.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/regular.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/regular.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/regular.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/regular.h'}} #include <__concepts/regular.h> +// expected-error@-1 {{header '<__concepts/regular.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/regular.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/regular.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/regular.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/regular.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/relation.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/relation.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/relation.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/relation.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/relation.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/relation.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/relation.h'}} #include <__concepts/relation.h> +// expected-error@-1 {{header '<__concepts/relation.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/relation.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/relation.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/relation.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/relation.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/same_as.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/same_as.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/same_as.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/same_as.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/same_as.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/same_as.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/same_as.h'}} #include <__concepts/same_as.h> +// expected-error@-1 {{header '<__concepts/same_as.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/same_as.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/same_as.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/same_as.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/same_as.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/semiregular.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/semiregular.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/semiregular.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/semiregular.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/semiregular.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/semiregular.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/semiregular.h'}} #include <__concepts/semiregular.h> +// expected-error@-1 {{header '<__concepts/semiregular.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/semiregular.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/semiregular.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/semiregular.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/semiregular.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/swappable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/swappable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/swappable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/swappable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/swappable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/swappable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/swappable.h'}} #include <__concepts/swappable.h> +// expected-error@-1 {{header '<__concepts/swappable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/swappable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/swappable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/swappable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/swappable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/totally_ordered.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/totally_ordered.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/totally_ordered.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/concepts/totally_ordered.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/totally_ordered.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/totally_ordered.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/totally_ordered.h'}} #include <__concepts/totally_ordered.h> +// expected-error@-1 {{header '<__concepts/totally_ordered.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/totally_ordered.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/totally_ordered.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/totally_ordered.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/concepts/totally_ordered.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_handle.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_handle.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_handle.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_handle.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_handle.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_handle.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__coroutine/coroutine_handle.h'}} #include <__coroutine/coroutine_handle.h> +// expected-error@-1 {{header '<__coroutine/coroutine_handle.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_handle.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_handle.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_handle.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_handle.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_traits.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_traits.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_traits.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_traits.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__coroutine/coroutine_traits.h'}} #include <__coroutine/coroutine_traits.h> +// expected-error@-1 {{header '<__coroutine/coroutine_traits.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_traits.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/coroutine_traits.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/noop_coroutine_handle.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/noop_coroutine_handle.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/coroutine/noop_coroutine_handle.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/coroutine/noop_coroutine_handle.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/noop_coroutine_handle.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/noop_coroutine_handle.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__coroutine/noop_coroutine_handle.h'}} #include <__coroutine/noop_coroutine_handle.h> +// expected-error@-1 {{header '<__coroutine/noop_coroutine_handle.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/noop_coroutine_handle.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/noop_coroutine_handle.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/noop_coroutine_handle.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/noop_coroutine_handle.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/trivial_awaitables.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/trivial_awaitables.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/coroutine/trivial_awaitables.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/coroutine/trivial_awaitables.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/trivial_awaitables.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/trivial_awaitables.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__coroutine/trivial_awaitables.h'}} #include <__coroutine/trivial_awaitables.h> +// expected-error@-1 {{header '<__coroutine/trivial_awaitables.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/trivial_awaitables.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/trivial_awaitables.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/trivial_awaitables.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/coroutine/trivial_awaitables.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/errc.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/errc.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/errc.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/errc.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/copy_options.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/copy_options.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/copy_options.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/copy_options.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/copy_options.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/copy_options.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/copy_options.h'}} #include <__filesystem/copy_options.h> +// expected-error@-1 {{header '<__filesystem/copy_options.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/copy_options.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/copy_options.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/copy_options.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/copy_options.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_entry.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_entry.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_entry.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_entry.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_entry.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_entry.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/directory_entry.h'}} #include <__filesystem/directory_entry.h> +// expected-error@-1 {{header '<__filesystem/directory_entry.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_entry.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_entry.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_entry.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_entry.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/directory_iterator.h'}} #include <__filesystem/directory_iterator.h> +// expected-error@-1 {{header '<__filesystem/directory_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_options.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_options.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_options.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_options.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_options.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_options.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/directory_options.h'}} #include <__filesystem/directory_options.h> +// expected-error@-1 {{header '<__filesystem/directory_options.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_options.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_options.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_options.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/directory_options.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_status.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_status.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_status.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_status.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_status.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_status.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/file_status.h'}} #include <__filesystem/file_status.h> +// expected-error@-1 {{header '<__filesystem/file_status.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_status.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_status.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_status.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_status.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_time_type.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_time_type.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_time_type.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_time_type.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_time_type.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_time_type.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/file_time_type.h'}} #include <__filesystem/file_time_type.h> +// expected-error@-1 {{header '<__filesystem/file_time_type.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_time_type.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_time_type.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_time_type.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_time_type.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_type.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_type.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_type.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_type.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_type.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_type.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/file_type.h'}} #include <__filesystem/file_type.h> +// expected-error@-1 {{header '<__filesystem/file_type.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_type.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_type.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_type.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/file_type.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/filesystem_error.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/filesystem_error.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/filesystem_error.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/filesystem_error.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/filesystem_error.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/filesystem_error.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/filesystem_error.h'}} #include <__filesystem/filesystem_error.h> +// expected-error@-1 {{header '<__filesystem/filesystem_error.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/filesystem_error.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/filesystem_error.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/filesystem_error.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/filesystem_error.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/operations.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/operations.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/operations.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/operations.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/operations.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/operations.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/operations.h'}} #include <__filesystem/operations.h> +// expected-error@-1 {{header '<__filesystem/operations.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/operations.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/operations.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/operations.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/operations.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/path.h'}} #include <__filesystem/path.h> +// expected-error@-1 {{header '<__filesystem/path.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/path_iterator.h'}} #include <__filesystem/path_iterator.h> +// expected-error@-1 {{header '<__filesystem/path_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/path_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perm_options.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perm_options.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perm_options.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perm_options.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perm_options.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perm_options.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/perm_options.h'}} #include <__filesystem/perm_options.h> +// expected-error@-1 {{header '<__filesystem/perm_options.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perm_options.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perm_options.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perm_options.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perm_options.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perms.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perms.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perms.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perms.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perms.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perms.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/perms.h'}} #include <__filesystem/perms.h> +// expected-error@-1 {{header '<__filesystem/perms.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perms.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perms.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perms.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/perms.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/recursive_directory_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/recursive_directory_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/recursive_directory_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/recursive_directory_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/recursive_directory_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/recursive_directory_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/recursive_directory_iterator.h'}} #include <__filesystem/recursive_directory_iterator.h> +// expected-error@-1 {{header '<__filesystem/recursive_directory_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/recursive_directory_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/recursive_directory_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/recursive_directory_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/recursive_directory_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/space_info.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/space_info.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/space_info.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/space_info.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/space_info.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/space_info.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/space_info.h'}} #include <__filesystem/space_info.h> +// expected-error@-1 {{header '<__filesystem/space_info.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/space_info.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/space_info.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/space_info.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/space_info.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/u8path.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/u8path.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/filesystem/u8path.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/filesystem/u8path.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/u8path.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/u8path.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__filesystem/u8path.h'}} #include <__filesystem/u8path.h> +// expected-error@-1 {{header '<__filesystem/u8path.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/u8path.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/u8path.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/u8path.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/filesystem/u8path.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_arg.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_arg.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_arg.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/format_arg.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_arg.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_arg.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_arg.h'}} #include <__format/format_arg.h> +// expected-error@-1 {{header '<__format/format_arg.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_arg.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_arg.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_arg.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_arg.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_args.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_args.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_args.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/format_args.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_args.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_args.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_args.h'}} #include <__format/format_args.h> +// expected-error@-1 {{header '<__format/format_args.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_args.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_args.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_args.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_args.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_context.h'}} #include <__format/format_context.h> +// expected-error@-1 {{header '<__format/format_context.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_context.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_error.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_error.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_error.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/format_error.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_error.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_error.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_error.h'}} #include <__format/format_error.h> +// expected-error@-1 {{header '<__format/format_error.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_error.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_error.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_error.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_error.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_fwd.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_fwd.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_fwd.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/format_fwd.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_fwd.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_fwd.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_fwd.h'}} #include <__format/format_fwd.h> +// expected-error@-1 {{header '<__format/format_fwd.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_fwd.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_fwd.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_fwd.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_fwd.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_parse_context.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_parse_context.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_parse_context.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/format_parse_context.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_parse_context.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_parse_context.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_parse_context.h'}} #include <__format/format_parse_context.h> +// expected-error@-1 {{header '<__format/format_parse_context.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_parse_context.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_parse_context.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_parse_context.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_parse_context.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_string.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_string.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_string.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/format_string.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_string.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_string.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_string.h'}} #include <__format/format_string.h> +// expected-error@-1 {{header '<__format/format_string.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_string.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_string.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_string.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_string.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_to_n_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_to_n_result.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/format_to_n_result.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/format_to_n_result.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_to_n_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_to_n_result.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/format_to_n_result.h'}} #include <__format/format_to_n_result.h> +// expected-error@-1 {{header '<__format/format_to_n_result.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_to_n_result.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_to_n_result.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/format_to_n_result.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/format_to_n_result.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/formatter.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/formatter.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/formatter.h'}} #include <__format/formatter.h> +// expected-error@-1 {{header '<__format/formatter.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_bool.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_bool.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_bool.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_bool.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_bool.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_bool.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/formatter_bool.h'}} #include <__format/formatter_bool.h> +// expected-error@-1 {{header '<__format/formatter_bool.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_bool.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_bool.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_bool.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_bool.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_char.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_char.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_char.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_char.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_char.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_char.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/formatter_char.h'}} #include <__format/formatter_char.h> +// expected-error@-1 {{header '<__format/formatter_char.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_char.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_char.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_char.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_char.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_floating_point.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_floating_point.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_floating_point.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_floating_point.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_floating_point.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_floating_point.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/formatter_floating_point.h'}} #include <__format/formatter_floating_point.h> +// expected-error@-1 {{header '<__format/formatter_floating_point.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_floating_point.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_floating_point.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_floating_point.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_floating_point.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integer.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integer.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integer.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integer.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integer.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integer.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/formatter_integer.h'}} #include <__format/formatter_integer.h> +// expected-error@-1 {{header '<__format/formatter_integer.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integer.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integer.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integer.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integer.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integral.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integral.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integral.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integral.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integral.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integral.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/formatter_integral.h'}} #include <__format/formatter_integral.h> +// expected-error@-1 {{header '<__format/formatter_integral.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integral.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integral.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integral.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_integral.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_pointer.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_pointer.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_pointer.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_pointer.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_pointer.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_pointer.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/formatter_pointer.h'}} #include <__format/formatter_pointer.h> +// expected-error@-1 {{header '<__format/formatter_pointer.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_pointer.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_pointer.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_pointer.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_pointer.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_string.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_string.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_string.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_string.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_string.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_string.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/formatter_string.h'}} #include <__format/formatter_string.h> +// expected-error@-1 {{header '<__format/formatter_string.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_string.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_string.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_string.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_string.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/parser_std_format_spec.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/parser_std_format_spec.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/format/parser_std_format_spec.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/format/parser_std_format_spec.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/parser_std_format_spec.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/parser_std_format_spec.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__format/parser_std_format_spec.h'}} #include <__format/parser_std_format_spec.h> +// expected-error@-1 {{header '<__format/parser_std_format_spec.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/format/parser_std_format_spec.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/format/parser_std_format_spec.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/format/parser_std_format_spec.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/format/parser_std_format_spec.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_function.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_function.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_function.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_function.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_function.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_function.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/binary_function.h'}} #include <__functional/binary_function.h> +// expected-error@-1 {{header '<__functional/binary_function.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_function.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_function.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_function.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_function.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_negate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_negate.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_negate.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_negate.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_negate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_negate.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/binary_negate.h'}} #include <__functional/binary_negate.h> +// expected-error@-1 {{header '<__functional/binary_negate.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_negate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_negate.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_negate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binary_negate.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/bind.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/bind.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/bind.h'}} #include <__functional/bind.h> +// expected-error@-1 {{header '<__functional/bind.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_back.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_back.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_back.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_back.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_back.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_back.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/bind_back.h'}} #include <__functional/bind_back.h> +// expected-error@-1 {{header '<__functional/bind_back.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_back.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_back.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_back.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_back.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_front.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_front.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_front.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_front.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_front.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_front.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/bind_front.h'}} #include <__functional/bind_front.h> +// expected-error@-1 {{header '<__functional/bind_front.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_front.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_front.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_front.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/bind_front.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder1st.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder1st.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/binder1st.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/binder1st.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder1st.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder1st.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/binder1st.h'}} #include <__functional/binder1st.h> +// expected-error@-1 {{header '<__functional/binder1st.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder1st.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder1st.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder1st.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder1st.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder2nd.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder2nd.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/binder2nd.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/binder2nd.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder2nd.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder2nd.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/binder2nd.h'}} #include <__functional/binder2nd.h> +// expected-error@-1 {{header '<__functional/binder2nd.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder2nd.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder2nd.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder2nd.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/binder2nd.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/compose.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/compose.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/assignable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/compose.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/assignable.h'}} -#include <__concepts/assignable.h> +#include <__functional/compose.h> +// expected-error@-1 {{header '<__functional/compose.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/compose.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/compose.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/compose.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/compose.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/default_searcher.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/default_searcher.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/default_searcher.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/default_searcher.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/default_searcher.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/default_searcher.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/default_searcher.h'}} #include <__functional/default_searcher.h> +// expected-error@-1 {{header '<__functional/default_searcher.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/default_searcher.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/default_searcher.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/default_searcher.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/default_searcher.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/function.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/function.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/function.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/function.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/function.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/function.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/function.h'}} #include <__functional/function.h> +// expected-error@-1 {{header '<__functional/function.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/function.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/function.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/function.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/function.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/hash.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/hash.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/hash.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/hash.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/hash.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/hash.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/hash.h'}} #include <__functional/hash.h> +// expected-error@-1 {{header '<__functional/hash.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/hash.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/hash.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/hash.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/hash.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/identity.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/identity.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/identity.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/identity.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/identity.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/identity.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/identity.h'}} #include <__functional/identity.h> +// expected-error@-1 {{header '<__functional/identity.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/identity.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/identity.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/identity.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/identity.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/invoke.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/invoke.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/invoke.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/invoke.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/invoke.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/invoke.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/invoke.h'}} #include <__functional/invoke.h> +// expected-error@-1 {{header '<__functional/invoke.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/invoke.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/invoke.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/invoke.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/invoke.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/is_transparent.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/is_transparent.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/is_transparent.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/is_transparent.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/is_transparent.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/is_transparent.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/is_transparent.h'}} #include <__functional/is_transparent.h> +// expected-error@-1 {{header '<__functional/is_transparent.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/is_transparent.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/is_transparent.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/is_transparent.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/is_transparent.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fn.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fn.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fn.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fn.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fn.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fn.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/mem_fn.h'}} #include <__functional/mem_fn.h> +// expected-error@-1 {{header '<__functional/mem_fn.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fn.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fn.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fn.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fn.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fun_ref.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fun_ref.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fun_ref.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fun_ref.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fun_ref.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fun_ref.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/mem_fun_ref.h'}} #include <__functional/mem_fun_ref.h> +// expected-error@-1 {{header '<__functional/mem_fun_ref.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fun_ref.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fun_ref.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fun_ref.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/mem_fun_ref.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/not_fn.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/not_fn.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/not_fn.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/not_fn.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/not_fn.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/not_fn.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/not_fn.h'}} #include <__functional/not_fn.h> +// expected-error@-1 {{header '<__functional/not_fn.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/not_fn.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/not_fn.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/not_fn.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/not_fn.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/operations.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/operations.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/operations.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/operations.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/operations.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/operations.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/operations.h'}} #include <__functional/operations.h> +// expected-error@-1 {{header '<__functional/operations.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/operations.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/operations.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/operations.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/operations.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/perfect_forward.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/perfect_forward.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/perfect_forward.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/perfect_forward.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/perfect_forward.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/perfect_forward.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/perfect_forward.h'}} #include <__functional/perfect_forward.h> +// expected-error@-1 {{header '<__functional/perfect_forward.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/perfect_forward.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/perfect_forward.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/perfect_forward.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/perfect_forward.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_binary_function.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_binary_function.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_binary_function.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_binary_function.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_binary_function.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_binary_function.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/pointer_to_binary_function.h'}} #include <__functional/pointer_to_binary_function.h> +// expected-error@-1 {{header '<__functional/pointer_to_binary_function.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_binary_function.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_binary_function.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_binary_function.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_binary_function.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_unary_function.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_unary_function.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_unary_function.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_unary_function.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_unary_function.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_unary_function.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/pointer_to_unary_function.h'}} #include <__functional/pointer_to_unary_function.h> +// expected-error@-1 {{header '<__functional/pointer_to_unary_function.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_unary_function.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_unary_function.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_unary_function.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/pointer_to_unary_function.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/ranges_operations.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/ranges_operations.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/ranges_operations.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/ranges_operations.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/ranges_operations.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/ranges_operations.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/ranges_operations.h'}} #include <__functional/ranges_operations.h> +// expected-error@-1 {{header '<__functional/ranges_operations.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/ranges_operations.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/ranges_operations.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/ranges_operations.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/ranges_operations.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/reference_wrapper.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/reference_wrapper.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/reference_wrapper.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/reference_wrapper.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/reference_wrapper.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/reference_wrapper.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/reference_wrapper.h'}} #include <__functional/reference_wrapper.h> +// expected-error@-1 {{header '<__functional/reference_wrapper.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/reference_wrapper.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/reference_wrapper.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/reference_wrapper.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/reference_wrapper.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/unary_function.h'}} #include <__functional/unary_function.h> +// expected-error@-1 {{header '<__functional/unary_function.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_negate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_negate.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_negate.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_negate.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_negate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_negate.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/unary_negate.h'}} #include <__functional/unary_negate.h> +// expected-error@-1 {{header '<__functional/unary_negate.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_negate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_negate.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_negate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_negate.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unwrap_ref.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unwrap_ref.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/unwrap_ref.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/unwrap_ref.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unwrap_ref.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unwrap_ref.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/unwrap_ref.h'}} #include <__functional/unwrap_ref.h> +// expected-error@-1 {{header '<__functional/unwrap_ref.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unwrap_ref.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unwrap_ref.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unwrap_ref.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/unwrap_ref.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/weak_result_type.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/weak_result_type.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/weak_result_type.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/functional/weak_result_type.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/weak_result_type.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/weak_result_type.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/weak_result_type.h'}} #include <__functional/weak_result_type.h> +// expected-error@-1 {{header '<__functional/weak_result_type.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/weak_result_type.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/functional/weak_result_type.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/weak_result_type.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/functional/weak_result_type.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ios/fpos.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ios/fpos.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ios/fpos.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ios/fpos.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ios/fpos.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ios/fpos.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ios/fpos.h'}} #include <__ios/fpos.h> +// expected-error@-1 {{header '<__ios/fpos.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ios/fpos.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ios/fpos.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ios/fpos.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ios/fpos.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/access.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/access.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/access.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/access.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/access.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/access.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/access.h'}} #include <__iterator/access.h> +// expected-error@-1 {{header '<__iterator/access.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/access.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/access.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/access.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/access.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/advance.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/advance.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/advance.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/advance.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/advance.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/advance.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/advance.h'}} #include <__iterator/advance.h> +// expected-error@-1 {{header '<__iterator/advance.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/advance.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/advance.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/advance.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/advance.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/back_insert_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/back_insert_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/back_insert_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/back_insert_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/back_insert_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/back_insert_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/back_insert_iterator.h'}} #include <__iterator/back_insert_iterator.h> +// expected-error@-1 {{header '<__iterator/back_insert_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/back_insert_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/back_insert_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/back_insert_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/back_insert_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/common_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/common_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/common_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/common_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/common_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/common_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/common_iterator.h'}} #include <__iterator/common_iterator.h> +// expected-error@-1 {{header '<__iterator/common_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/common_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/common_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/common_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/common_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/concepts.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/concepts.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/concepts.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/concepts.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/concepts.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/concepts.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/concepts.h'}} #include <__iterator/concepts.h> +// expected-error@-1 {{header '<__iterator/concepts.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/concepts.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/concepts.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/concepts.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/concepts.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/counted_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/counted_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/counted_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/counted_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/counted_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/counted_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/counted_iterator.h'}} #include <__iterator/counted_iterator.h> +// expected-error@-1 {{header '<__iterator/counted_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/counted_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/counted_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/counted_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/counted_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/data.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/data.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/data.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/data.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/data.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/data.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/data.h'}} #include <__iterator/data.h> +// expected-error@-1 {{header '<__iterator/data.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/data.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/data.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/data.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/data.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/default_sentinel.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/default_sentinel.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/default_sentinel.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/default_sentinel.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/default_sentinel.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/default_sentinel.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/default_sentinel.h'}} #include <__iterator/default_sentinel.h> +// expected-error@-1 {{header '<__iterator/default_sentinel.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/default_sentinel.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/default_sentinel.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/default_sentinel.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/default_sentinel.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/distance.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/distance.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/distance.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/distance.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/distance.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/distance.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/distance.h'}} #include <__iterator/distance.h> +// expected-error@-1 {{header '<__iterator/distance.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/distance.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/distance.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/distance.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/distance.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/empty.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/empty.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/empty.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/empty.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/empty.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/empty.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/empty.h'}} #include <__iterator/empty.h> +// expected-error@-1 {{header '<__iterator/empty.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/empty.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/empty.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/empty.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/empty.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/erase_if_container.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/erase_if_container.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/erase_if_container.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/erase_if_container.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/erase_if_container.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/erase_if_container.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/erase_if_container.h'}} #include <__iterator/erase_if_container.h> +// expected-error@-1 {{header '<__iterator/erase_if_container.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/erase_if_container.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/erase_if_container.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/erase_if_container.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/erase_if_container.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/front_insert_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/front_insert_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/front_insert_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/front_insert_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/front_insert_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/front_insert_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/front_insert_iterator.h'}} #include <__iterator/front_insert_iterator.h> +// expected-error@-1 {{header '<__iterator/front_insert_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/front_insert_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/front_insert_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/front_insert_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/front_insert_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/incrementable_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/incrementable_traits.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/incrementable_traits.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/incrementable_traits.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/incrementable_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/incrementable_traits.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/incrementable_traits.h'}} #include <__iterator/incrementable_traits.h> +// expected-error@-1 {{header '<__iterator/incrementable_traits.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/incrementable_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/incrementable_traits.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/incrementable_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/incrementable_traits.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_comparable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_comparable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_comparable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_comparable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_comparable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_comparable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/indirectly_comparable.h'}} #include <__iterator/indirectly_comparable.h> +// expected-error@-1 {{header '<__iterator/indirectly_comparable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_comparable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_comparable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_comparable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/indirectly_comparable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/insert_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/insert_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/insert_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/insert_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/insert_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/insert_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/insert_iterator.h'}} #include <__iterator/insert_iterator.h> +// expected-error@-1 {{header '<__iterator/insert_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/insert_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/insert_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/insert_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/insert_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istream_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istream_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/istream_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/istream_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istream_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istream_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/istream_iterator.h'}} #include <__iterator/istream_iterator.h> +// expected-error@-1 {{header '<__iterator/istream_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istream_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istream_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istream_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istream_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istreambuf_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istreambuf_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/istreambuf_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/istreambuf_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istreambuf_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istreambuf_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/istreambuf_iterator.h'}} #include <__iterator/istreambuf_iterator.h> +// expected-error@-1 {{header '<__iterator/istreambuf_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istreambuf_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istreambuf_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istreambuf_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/istreambuf_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_move.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_move.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_move.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_move.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_move.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_move.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/iter_move.h'}} #include <__iterator/iter_move.h> +// expected-error@-1 {{header '<__iterator/iter_move.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_move.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_move.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_move.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_move.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_swap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_swap.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_swap.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_swap.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_swap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_swap.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/iter_swap.h'}} #include <__iterator/iter_swap.h> +// expected-error@-1 {{header '<__iterator/iter_swap.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_swap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_swap.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_swap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iter_swap.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/iterator.h'}} #include <__iterator/iterator.h> +// expected-error@-1 {{header '<__iterator/iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator_traits.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator_traits.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator_traits.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator_traits.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/iterator_traits.h'}} #include <__iterator/iterator_traits.h> +// expected-error@-1 {{header '<__iterator/iterator_traits.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator_traits.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/iterator_traits.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/mergeable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/mergeable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/mergeable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/mergeable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/mergeable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/mergeable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/mergeable.h'}} #include <__iterator/mergeable.h> +// expected-error@-1 {{header '<__iterator/mergeable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/mergeable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/mergeable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/mergeable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/mergeable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/move_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/move_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/move_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/move_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/move_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/move_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/move_iterator.h'}} #include <__iterator/move_iterator.h> +// expected-error@-1 {{header '<__iterator/move_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/move_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/move_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/move_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/move_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/next.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/next.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/next.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/next.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/next.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/next.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/next.h'}} #include <__iterator/next.h> +// expected-error@-1 {{header '<__iterator/next.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/next.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/next.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/next.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/next.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostream_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostream_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostream_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostream_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostream_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostream_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/ostream_iterator.h'}} #include <__iterator/ostream_iterator.h> +// expected-error@-1 {{header '<__iterator/ostream_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostream_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostream_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostream_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostream_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostreambuf_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostreambuf_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostreambuf_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostreambuf_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostreambuf_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostreambuf_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/ostreambuf_iterator.h'}} #include <__iterator/ostreambuf_iterator.h> +// expected-error@-1 {{header '<__iterator/ostreambuf_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostreambuf_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostreambuf_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostreambuf_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/ostreambuf_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/permutable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/permutable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/concepts/common_reference_with.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/permutable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__concepts/common_reference_with.h'}} -#include <__concepts/common_reference_with.h> +#include <__iterator/permutable.h> +// expected-error@-1 {{header '<__iterator/permutable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/permutable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/permutable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/permutable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/permutable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/prev.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/prev.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/prev.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/prev.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/prev.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/prev.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/prev.h'}} #include <__iterator/prev.h> +// expected-error@-1 {{header '<__iterator/prev.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/prev.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/prev.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/prev.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/prev.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/projected.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/projected.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/projected.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/projected.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/projected.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/projected.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/projected.h'}} #include <__iterator/projected.h> +// expected-error@-1 {{header '<__iterator/projected.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/projected.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/projected.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/projected.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/projected.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/readable_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/readable_traits.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/readable_traits.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/readable_traits.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/readable_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/readable_traits.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/readable_traits.h'}} #include <__iterator/readable_traits.h> +// expected-error@-1 {{header '<__iterator/readable_traits.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/readable_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/readable_traits.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/readable_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/readable_traits.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_access.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_access.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_access.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_access.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_access.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_access.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/reverse_access.h'}} #include <__iterator/reverse_access.h> +// expected-error@-1 {{header '<__iterator/reverse_access.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_access.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_access.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_access.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_access.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/reverse_iterator.h'}} #include <__iterator/reverse_iterator.h> +// expected-error@-1 {{header '<__iterator/reverse_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/reverse_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/size.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/size.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/size.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/size.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/size.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/size.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/size.h'}} #include <__iterator/size.h> +// expected-error@-1 {{header '<__iterator/size.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/size.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/size.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/size.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/size.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/sortable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/sortable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/sortable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/sortable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/sortable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/sortable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/sortable.h'}} #include <__iterator/sortable.h> +// expected-error@-1 {{header '<__iterator/sortable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/sortable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/sortable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/sortable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/sortable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/unreachable_sentinel.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/unreachable_sentinel.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/unreachable_sentinel.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/unreachable_sentinel.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/unreachable_sentinel.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/unreachable_sentinel.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/unreachable_sentinel.h'}} #include <__iterator/unreachable_sentinel.h> +// expected-error@-1 {{header '<__iterator/unreachable_sentinel.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/unreachable_sentinel.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/unreachable_sentinel.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/unreachable_sentinel.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/unreachable_sentinel.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/wrap_iter.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/wrap_iter.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/iterator/wrap_iter.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/iterator/wrap_iter.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/wrap_iter.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/wrap_iter.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__iterator/wrap_iter.h'}} #include <__iterator/wrap_iter.h> +// expected-error@-1 {{header '<__iterator/wrap_iter.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/wrap_iter.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/wrap_iter.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/iterator/wrap_iter.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/iterator/wrap_iter.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/locale.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/locale.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/locale.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/locale.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/locale.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/locale.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__locale'}} #include <__locale> +// expected-error@-1 {{header '<__locale>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/locale.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/locale.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/locale.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/locale.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/mbstate_t.h.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/mbstate_t.h.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/mbstate_t.h.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/mbstate_t.h.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/addressof.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/addressof.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/addressof.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/addressof.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/addressof.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/addressof.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/addressof.h'}} #include <__memory/addressof.h> +// expected-error@-1 {{header '<__memory/addressof.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/addressof.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/addressof.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/addressof.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/addressof.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocation_guard.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocation_guard.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/allocation_guard.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/allocation_guard.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocation_guard.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocation_guard.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/allocation_guard.h'}} #include <__memory/allocation_guard.h> +// expected-error@-1 {{header '<__memory/allocation_guard.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocation_guard.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocation_guard.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocation_guard.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocation_guard.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/allocator.h'}} #include <__memory/allocator.h> +// expected-error@-1 {{header '<__memory/allocator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_arg_t.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_arg_t.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_arg_t.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_arg_t.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_arg_t.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_arg_t.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/allocator_arg_t.h'}} #include <__memory/allocator_arg_t.h> +// expected-error@-1 {{header '<__memory/allocator_arg_t.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_arg_t.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_arg_t.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_arg_t.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_arg_t.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_traits.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_traits.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_traits.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_traits.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/allocator_traits.h'}} #include <__memory/allocator_traits.h> +// expected-error@-1 {{header '<__memory/allocator_traits.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_traits.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/allocator_traits.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/auto_ptr.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/auto_ptr.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/auto_ptr.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/auto_ptr.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/auto_ptr.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/auto_ptr.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/auto_ptr.h'}} #include <__memory/auto_ptr.h> +// expected-error@-1 {{header '<__memory/auto_ptr.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/auto_ptr.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/auto_ptr.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/auto_ptr.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/auto_ptr.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/compressed_pair.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/compressed_pair.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/compressed_pair.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/compressed_pair.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/compressed_pair.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/compressed_pair.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/compressed_pair.h'}} #include <__memory/compressed_pair.h> +// expected-error@-1 {{header '<__memory/compressed_pair.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/compressed_pair.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/compressed_pair.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/compressed_pair.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/compressed_pair.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/concepts.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/concepts.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/concepts.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/concepts.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/concepts.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/concepts.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/concepts.h'}} #include <__memory/concepts.h> +// expected-error@-1 {{header '<__memory/concepts.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/concepts.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/concepts.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/concepts.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/concepts.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/construct_at.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/construct_at.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/construct_at.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/construct_at.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/construct_at.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/construct_at.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/construct_at.h'}} #include <__memory/construct_at.h> +// expected-error@-1 {{header '<__memory/construct_at.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/construct_at.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/construct_at.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/construct_at.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/construct_at.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/pointer_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/pointer_traits.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/pointer_traits.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/pointer_traits.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/pointer_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/pointer_traits.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/pointer_traits.h'}} #include <__memory/pointer_traits.h> +// expected-error@-1 {{header '<__memory/pointer_traits.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/pointer_traits.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/pointer_traits.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/pointer_traits.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/pointer_traits.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_construct_at.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_construct_at.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_construct_at.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_construct_at.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_construct_at.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_construct_at.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/ranges_construct_at.h'}} #include <__memory/ranges_construct_at.h> +// expected-error@-1 {{header '<__memory/ranges_construct_at.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_construct_at.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_construct_at.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_construct_at.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_construct_at.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_uninitialized_algorithms.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_uninitialized_algorithms.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_uninitialized_algorithms.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_uninitialized_algorithms.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_uninitialized_algorithms.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_uninitialized_algorithms.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/ranges_uninitialized_algorithms.h'}} #include <__memory/ranges_uninitialized_algorithms.h> +// expected-error@-1 {{header '<__memory/ranges_uninitialized_algorithms.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_uninitialized_algorithms.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_uninitialized_algorithms.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_uninitialized_algorithms.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/ranges_uninitialized_algorithms.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/raw_storage_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/raw_storage_iterator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/raw_storage_iterator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/raw_storage_iterator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/raw_storage_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/raw_storage_iterator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/raw_storage_iterator.h'}} #include <__memory/raw_storage_iterator.h> +// expected-error@-1 {{header '<__memory/raw_storage_iterator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/raw_storage_iterator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/raw_storage_iterator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/raw_storage_iterator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/raw_storage_iterator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/shared_ptr.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/shared_ptr.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/functional/unary_function.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/shared_ptr.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__functional/unary_function.h'}} -#include <__functional/unary_function.h> +#include <__memory/shared_ptr.h> +// expected-error@-1 {{header '<__memory/shared_ptr.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/shared_ptr.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/shared_ptr.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/shared_ptr.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/shared_ptr.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/temporary_buffer.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/temporary_buffer.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/temporary_buffer.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/temporary_buffer.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/temporary_buffer.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/temporary_buffer.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/temporary_buffer.h'}} #include <__memory/temporary_buffer.h> +// expected-error@-1 {{header '<__memory/temporary_buffer.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/temporary_buffer.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/temporary_buffer.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/temporary_buffer.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/temporary_buffer.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/uninitialized_algorithms.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/uninitialized_algorithms.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/uninitialized_algorithms.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/uninitialized_algorithms.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/uninitialized_algorithms.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/uninitialized_algorithms.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/uninitialized_algorithms.h'}} #include <__memory/uninitialized_algorithms.h> +// expected-error@-1 {{header '<__memory/uninitialized_algorithms.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/uninitialized_algorithms.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/uninitialized_algorithms.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/uninitialized_algorithms.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/uninitialized_algorithms.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/unique_ptr.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/unique_ptr.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/unique_ptr.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/unique_ptr.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/unique_ptr.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/unique_ptr.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/unique_ptr.h'}} #include <__memory/unique_ptr.h> +// expected-error@-1 {{header '<__memory/unique_ptr.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/unique_ptr.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/unique_ptr.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/unique_ptr.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/unique_ptr.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/uses_allocator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/uses_allocator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/uses_allocator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/uses_allocator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/uses_allocator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/uses_allocator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/uses_allocator.h'}} #include <__memory/uses_allocator.h> +// expected-error@-1 {{header '<__memory/uses_allocator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/uses_allocator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/uses_allocator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/uses_allocator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/uses_allocator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/voidify.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/voidify.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/memory/voidify.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/memory/voidify.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/voidify.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/voidify.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__memory/voidify.h'}} #include <__memory/voidify.h> +// expected-error@-1 {{header '<__memory/voidify.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/memory/voidify.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/memory/voidify.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/memory/voidify.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/memory/voidify.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/mutex_base.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/mutex_base.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/mutex_base.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/mutex_base.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/mutex_base.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/mutex_base.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__mutex_base'}} #include <__mutex_base> +// expected-error@-1 {{header '<__mutex_base>' is an implementation detail; #include either '' or '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/mutex_base.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/mutex_base.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/mutex_base.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/mutex_base.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/node_handle.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/node_handle.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/node_handle.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/node_handle.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/node_handle.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/node_handle.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__node_handle'}} #include <__node_handle> +// expected-error@-1 {{header '<__node_handle>' is an implementation detail; #include one of {'', '', '', ''} instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/node_handle.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/node_handle.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/node_handle.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/node_handle.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/accumulate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/accumulate.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/accumulate.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/accumulate.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/accumulate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/accumulate.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/accumulate.h'}} #include <__numeric/accumulate.h> +// expected-error@-1 {{header '<__numeric/accumulate.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/accumulate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/accumulate.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/accumulate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/accumulate.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/adjacent_difference.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/adjacent_difference.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/adjacent_difference.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/adjacent_difference.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/adjacent_difference.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/adjacent_difference.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/adjacent_difference.h'}} #include <__numeric/adjacent_difference.h> +// expected-error@-1 {{header '<__numeric/adjacent_difference.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/adjacent_difference.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/adjacent_difference.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/adjacent_difference.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/adjacent_difference.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/exclusive_scan.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/exclusive_scan.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/exclusive_scan.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/exclusive_scan.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/exclusive_scan.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/exclusive_scan.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/exclusive_scan.h'}} #include <__numeric/exclusive_scan.h> +// expected-error@-1 {{header '<__numeric/exclusive_scan.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/exclusive_scan.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/exclusive_scan.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/exclusive_scan.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/exclusive_scan.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/gcd_lcm.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/gcd_lcm.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/gcd_lcm.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/gcd_lcm.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/gcd_lcm.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/gcd_lcm.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/gcd_lcm.h'}} #include <__numeric/gcd_lcm.h> +// expected-error@-1 {{header '<__numeric/gcd_lcm.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/gcd_lcm.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/gcd_lcm.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/gcd_lcm.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/gcd_lcm.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inclusive_scan.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inclusive_scan.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/inclusive_scan.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/inclusive_scan.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inclusive_scan.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inclusive_scan.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/inclusive_scan.h'}} #include <__numeric/inclusive_scan.h> +// expected-error@-1 {{header '<__numeric/inclusive_scan.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inclusive_scan.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inclusive_scan.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inclusive_scan.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inclusive_scan.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inner_product.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inner_product.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/inner_product.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/inner_product.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inner_product.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inner_product.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/inner_product.h'}} #include <__numeric/inner_product.h> +// expected-error@-1 {{header '<__numeric/inner_product.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inner_product.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inner_product.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inner_product.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/inner_product.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/iota.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/iota.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/iota.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/iota.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/iota.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/iota.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/iota.h'}} #include <__numeric/iota.h> +// expected-error@-1 {{header '<__numeric/iota.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/iota.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/iota.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/iota.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/iota.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/midpoint.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/midpoint.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/midpoint.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/midpoint.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/midpoint.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/midpoint.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/midpoint.h'}} #include <__numeric/midpoint.h> +// expected-error@-1 {{header '<__numeric/midpoint.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/midpoint.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/midpoint.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/midpoint.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/midpoint.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/partial_sum.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/partial_sum.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/partial_sum.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/partial_sum.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/partial_sum.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/partial_sum.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/partial_sum.h'}} #include <__numeric/partial_sum.h> +// expected-error@-1 {{header '<__numeric/partial_sum.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/partial_sum.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/partial_sum.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/partial_sum.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/partial_sum.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/reduce.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/reduce.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/reduce.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/reduce.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/reduce.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/reduce.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/reduce.h'}} #include <__numeric/reduce.h> +// expected-error@-1 {{header '<__numeric/reduce.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/reduce.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/reduce.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/reduce.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/reduce.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_exclusive_scan.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_exclusive_scan.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_exclusive_scan.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_exclusive_scan.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_exclusive_scan.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_exclusive_scan.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/transform_exclusive_scan.h'}} #include <__numeric/transform_exclusive_scan.h> +// expected-error@-1 {{header '<__numeric/transform_exclusive_scan.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_exclusive_scan.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_exclusive_scan.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_exclusive_scan.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_exclusive_scan.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_inclusive_scan.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_inclusive_scan.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_inclusive_scan.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_inclusive_scan.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_inclusive_scan.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_inclusive_scan.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/transform_inclusive_scan.h'}} #include <__numeric/transform_inclusive_scan.h> +// expected-error@-1 {{header '<__numeric/transform_inclusive_scan.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_inclusive_scan.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_inclusive_scan.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_inclusive_scan.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_inclusive_scan.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_reduce.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_reduce.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_reduce.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_reduce.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_reduce.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_reduce.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__numeric/transform_reduce.h'}} #include <__numeric/transform_reduce.h> +// expected-error@-1 {{header '<__numeric/transform_reduce.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_reduce.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_reduce.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_reduce.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/numeric/transform_reduce.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/bernoulli_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/bernoulli_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/bernoulli_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/bernoulli_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/bernoulli_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/bernoulli_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/bernoulli_distribution.h'}} #include <__random/bernoulli_distribution.h> +// expected-error@-1 {{header '<__random/bernoulli_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/bernoulli_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/bernoulli_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/bernoulli_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/bernoulli_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/binomial_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/binomial_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/binomial_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/binomial_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/binomial_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/binomial_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/binomial_distribution.h'}} #include <__random/binomial_distribution.h> +// expected-error@-1 {{header '<__random/binomial_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/binomial_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/binomial_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/binomial_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/binomial_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/cauchy_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/cauchy_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/cauchy_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/cauchy_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/cauchy_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/cauchy_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/cauchy_distribution.h'}} #include <__random/cauchy_distribution.h> +// expected-error@-1 {{header '<__random/cauchy_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/cauchy_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/cauchy_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/cauchy_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/cauchy_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/chi_squared_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/chi_squared_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/chi_squared_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/chi_squared_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/chi_squared_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/chi_squared_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/chi_squared_distribution.h'}} #include <__random/chi_squared_distribution.h> +// expected-error@-1 {{header '<__random/chi_squared_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/chi_squared_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/chi_squared_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/chi_squared_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/chi_squared_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/clamp_to_integral.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/clamp_to_integral.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/clamp_to_integral.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/clamp_to_integral.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/clamp_to_integral.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/clamp_to_integral.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/clamp_to_integral.h'}} #include <__random/clamp_to_integral.h> +// expected-error@-1 {{header '<__random/clamp_to_integral.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/clamp_to_integral.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/clamp_to_integral.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/clamp_to_integral.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/clamp_to_integral.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/default_random_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/default_random_engine.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/default_random_engine.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/default_random_engine.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/default_random_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/default_random_engine.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/default_random_engine.h'}} #include <__random/default_random_engine.h> +// expected-error@-1 {{header '<__random/default_random_engine.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/default_random_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/default_random_engine.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/default_random_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/default_random_engine.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/discard_block_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/discard_block_engine.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/discard_block_engine.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/discard_block_engine.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/discard_block_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/discard_block_engine.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/discard_block_engine.h'}} #include <__random/discard_block_engine.h> +// expected-error@-1 {{header '<__random/discard_block_engine.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/discard_block_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/discard_block_engine.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/discard_block_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/discard_block_engine.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/discrete_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/discrete_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/discrete_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/discrete_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/discrete_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/discrete_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/discrete_distribution.h'}} #include <__random/discrete_distribution.h> +// expected-error@-1 {{header '<__random/discrete_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/discrete_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/discrete_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/discrete_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/discrete_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/exponential_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/exponential_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/exponential_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/exponential_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/exponential_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/exponential_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/exponential_distribution.h'}} #include <__random/exponential_distribution.h> +// expected-error@-1 {{header '<__random/exponential_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/exponential_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/exponential_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/exponential_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/exponential_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/extreme_value_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/extreme_value_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/extreme_value_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/extreme_value_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/extreme_value_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/extreme_value_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/extreme_value_distribution.h'}} #include <__random/extreme_value_distribution.h> +// expected-error@-1 {{header '<__random/extreme_value_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/extreme_value_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/extreme_value_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/extreme_value_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/extreme_value_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/fisher_f_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/fisher_f_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/fisher_f_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/fisher_f_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/fisher_f_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/fisher_f_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/fisher_f_distribution.h'}} #include <__random/fisher_f_distribution.h> +// expected-error@-1 {{header '<__random/fisher_f_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/fisher_f_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/fisher_f_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/fisher_f_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/fisher_f_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/gamma_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/gamma_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/gamma_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/gamma_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/gamma_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/gamma_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/gamma_distribution.h'}} #include <__random/gamma_distribution.h> +// expected-error@-1 {{header '<__random/gamma_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/gamma_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/gamma_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/gamma_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/gamma_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/generate_canonical.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/generate_canonical.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/generate_canonical.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/generate_canonical.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/generate_canonical.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/generate_canonical.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/generate_canonical.h'}} #include <__random/generate_canonical.h> +// expected-error@-1 {{header '<__random/generate_canonical.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/generate_canonical.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/generate_canonical.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/generate_canonical.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/generate_canonical.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/geometric_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/geometric_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/geometric_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/geometric_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/geometric_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/geometric_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/geometric_distribution.h'}} #include <__random/geometric_distribution.h> +// expected-error@-1 {{header '<__random/geometric_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/geometric_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/geometric_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/geometric_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/geometric_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/independent_bits_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/independent_bits_engine.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/independent_bits_engine.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/independent_bits_engine.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/independent_bits_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/independent_bits_engine.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/independent_bits_engine.h'}} #include <__random/independent_bits_engine.h> +// expected-error@-1 {{header '<__random/independent_bits_engine.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/independent_bits_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/independent_bits_engine.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/independent_bits_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/independent_bits_engine.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/is_seed_sequence.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/is_seed_sequence.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/is_seed_sequence.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/is_seed_sequence.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/is_seed_sequence.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/is_seed_sequence.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/is_seed_sequence.h'}} #include <__random/is_seed_sequence.h> +// expected-error@-1 {{header '<__random/is_seed_sequence.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/is_seed_sequence.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/is_seed_sequence.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/is_seed_sequence.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/is_seed_sequence.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/knuth_b.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/knuth_b.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/knuth_b.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/knuth_b.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/knuth_b.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/knuth_b.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/knuth_b.h'}} #include <__random/knuth_b.h> +// expected-error@-1 {{header '<__random/knuth_b.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/knuth_b.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/knuth_b.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/knuth_b.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/knuth_b.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/linear_congruential_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/linear_congruential_engine.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/linear_congruential_engine.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/linear_congruential_engine.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/linear_congruential_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/linear_congruential_engine.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/linear_congruential_engine.h'}} #include <__random/linear_congruential_engine.h> +// expected-error@-1 {{header '<__random/linear_congruential_engine.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/linear_congruential_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/linear_congruential_engine.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/linear_congruential_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/linear_congruential_engine.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/log2.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/log2.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/log2.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/log2.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/log2.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/log2.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/log2.h'}} #include <__random/log2.h> +// expected-error@-1 {{header '<__random/log2.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/log2.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/log2.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/log2.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/log2.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/lognormal_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/lognormal_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/lognormal_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/lognormal_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/lognormal_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/lognormal_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/lognormal_distribution.h'}} #include <__random/lognormal_distribution.h> +// expected-error@-1 {{header '<__random/lognormal_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/lognormal_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/lognormal_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/lognormal_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/lognormal_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/mersenne_twister_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/mersenne_twister_engine.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/mersenne_twister_engine.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/mersenne_twister_engine.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/mersenne_twister_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/mersenne_twister_engine.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/mersenne_twister_engine.h'}} #include <__random/mersenne_twister_engine.h> +// expected-error@-1 {{header '<__random/mersenne_twister_engine.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/mersenne_twister_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/mersenne_twister_engine.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/mersenne_twister_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/mersenne_twister_engine.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/negative_binomial_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/negative_binomial_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/negative_binomial_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/negative_binomial_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/negative_binomial_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/negative_binomial_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/negative_binomial_distribution.h'}} #include <__random/negative_binomial_distribution.h> +// expected-error@-1 {{header '<__random/negative_binomial_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/negative_binomial_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/negative_binomial_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/negative_binomial_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/negative_binomial_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/normal_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/normal_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/normal_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/normal_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/normal_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/normal_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/normal_distribution.h'}} #include <__random/normal_distribution.h> +// expected-error@-1 {{header '<__random/normal_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/normal_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/normal_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/normal_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/normal_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_constant_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_constant_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_constant_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_constant_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_constant_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_constant_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/piecewise_constant_distribution.h'}} #include <__random/piecewise_constant_distribution.h> +// expected-error@-1 {{header '<__random/piecewise_constant_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_constant_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_constant_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_constant_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_constant_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_linear_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_linear_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_linear_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_linear_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_linear_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_linear_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/piecewise_linear_distribution.h'}} #include <__random/piecewise_linear_distribution.h> +// expected-error@-1 {{header '<__random/piecewise_linear_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_linear_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_linear_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_linear_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/piecewise_linear_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/poisson_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/poisson_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/poisson_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/poisson_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/poisson_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/poisson_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/poisson_distribution.h'}} #include <__random/poisson_distribution.h> +// expected-error@-1 {{header '<__random/poisson_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/poisson_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/poisson_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/poisson_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/poisson_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/random_device.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/random_device.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/random_device.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/random_device.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/random_device.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/random_device.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/random_device.h'}} #include <__random/random_device.h> +// expected-error@-1 {{header '<__random/random_device.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/random_device.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/random_device.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/random_device.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/random_device.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/ranlux.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/ranlux.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/ranlux.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/ranlux.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/ranlux.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/ranlux.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/ranlux.h'}} #include <__random/ranlux.h> +// expected-error@-1 {{header '<__random/ranlux.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/ranlux.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/ranlux.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/ranlux.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/ranlux.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/seed_seq.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/seed_seq.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/seed_seq.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/seed_seq.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/seed_seq.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/seed_seq.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/seed_seq.h'}} #include <__random/seed_seq.h> +// expected-error@-1 {{header '<__random/seed_seq.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/seed_seq.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/seed_seq.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/seed_seq.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/seed_seq.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/shuffle_order_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/shuffle_order_engine.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/shuffle_order_engine.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/shuffle_order_engine.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/shuffle_order_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/shuffle_order_engine.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/shuffle_order_engine.h'}} #include <__random/shuffle_order_engine.h> +// expected-error@-1 {{header '<__random/shuffle_order_engine.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/shuffle_order_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/shuffle_order_engine.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/shuffle_order_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/shuffle_order_engine.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/student_t_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/student_t_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/student_t_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/student_t_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/student_t_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/student_t_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/student_t_distribution.h'}} #include <__random/student_t_distribution.h> +// expected-error@-1 {{header '<__random/student_t_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/student_t_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/student_t_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/student_t_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/student_t_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/subtract_with_carry_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/subtract_with_carry_engine.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/subtract_with_carry_engine.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/subtract_with_carry_engine.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/subtract_with_carry_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/subtract_with_carry_engine.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/subtract_with_carry_engine.h'}} #include <__random/subtract_with_carry_engine.h> +// expected-error@-1 {{header '<__random/subtract_with_carry_engine.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/subtract_with_carry_engine.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/subtract_with_carry_engine.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/subtract_with_carry_engine.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/subtract_with_carry_engine.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_int_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_int_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_int_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_int_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_int_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_int_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/uniform_int_distribution.h'}} #include <__random/uniform_int_distribution.h> +// expected-error@-1 {{header '<__random/uniform_int_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_int_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_int_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_int_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_int_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_random_bit_generator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_random_bit_generator.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_random_bit_generator.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_random_bit_generator.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_random_bit_generator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_random_bit_generator.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/uniform_random_bit_generator.h'}} #include <__random/uniform_random_bit_generator.h> +// expected-error@-1 {{header '<__random/uniform_random_bit_generator.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_random_bit_generator.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_random_bit_generator.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_random_bit_generator.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_random_bit_generator.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_real_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_real_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_real_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_real_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_real_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_real_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/uniform_real_distribution.h'}} #include <__random/uniform_real_distribution.h> +// expected-error@-1 {{header '<__random/uniform_real_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_real_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_real_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_real_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/uniform_real_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/weibull_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/weibull_distribution.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/random/weibull_distribution.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/random/weibull_distribution.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/weibull_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/weibull_distribution.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__random/weibull_distribution.h'}} #include <__random/weibull_distribution.h> +// expected-error@-1 {{header '<__random/weibull_distribution.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/random/weibull_distribution.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/random/weibull_distribution.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/random/weibull_distribution.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/random/weibull_distribution.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/access.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/access.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/access.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/access.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/access.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/access.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/access.h'}} #include <__ranges/access.h> +// expected-error@-1 {{header '<__ranges/access.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/access.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/access.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/access.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/access.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/all.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/all.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/all.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/all.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/all.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/all.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/all.h'}} #include <__ranges/all.h> +// expected-error@-1 {{header '<__ranges/all.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/all.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/all.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/all.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/all.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/common_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/common_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/common_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/common_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/common_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/common_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/common_view.h'}} #include <__ranges/common_view.h> +// expected-error@-1 {{header '<__ranges/common_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/common_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/common_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/common_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/common_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/concepts.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/concepts.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/concepts.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/concepts.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/concepts.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/concepts.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/concepts.h'}} #include <__ranges/concepts.h> +// expected-error@-1 {{header '<__ranges/concepts.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/concepts.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/concepts.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/concepts.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/concepts.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/copyable_box.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/copyable_box.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/copyable_box.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/copyable_box.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/copyable_box.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/copyable_box.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/copyable_box.h'}} #include <__ranges/copyable_box.h> +// expected-error@-1 {{header '<__ranges/copyable_box.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/copyable_box.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/copyable_box.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/copyable_box.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/copyable_box.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/counted.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/counted.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/counted.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/counted.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/counted.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/counted.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/counted.h'}} #include <__ranges/counted.h> +// expected-error@-1 {{header '<__ranges/counted.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/counted.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/counted.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/counted.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/counted.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/dangling.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/dangling.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/dangling.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/dangling.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/dangling.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/dangling.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/dangling.h'}} #include <__ranges/dangling.h> +// expected-error@-1 {{header '<__ranges/dangling.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/dangling.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/dangling.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/dangling.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/dangling.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/data.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/data.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/data.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/data.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/data.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/data.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/data.h'}} #include <__ranges/data.h> +// expected-error@-1 {{header '<__ranges/data.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/data.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/data.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/data.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/data.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/drop_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/drop_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/drop_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/drop_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/drop_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/drop_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/drop_view.h'}} #include <__ranges/drop_view.h> +// expected-error@-1 {{header '<__ranges/drop_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/drop_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/drop_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/drop_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/drop_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/empty.h'}} #include <__ranges/empty.h> +// expected-error@-1 {{header '<__ranges/empty.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/empty_view.h'}} #include <__ranges/empty_view.h> +// expected-error@-1 {{header '<__ranges/empty_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/empty_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_borrowed_range.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_borrowed_range.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_borrowed_range.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_borrowed_range.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_borrowed_range.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_borrowed_range.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/enable_borrowed_range.h'}} #include <__ranges/enable_borrowed_range.h> +// expected-error@-1 {{header '<__ranges/enable_borrowed_range.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_borrowed_range.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_borrowed_range.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_borrowed_range.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_borrowed_range.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/enable_view.h'}} #include <__ranges/enable_view.h> +// expected-error@-1 {{header '<__ranges/enable_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/enable_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/iota_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/iota_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/iota_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/iota_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/iota_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/iota_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/iota_view.h'}} #include <__ranges/iota_view.h> +// expected-error@-1 {{header '<__ranges/iota_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/iota_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/iota_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/iota_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/iota_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/join_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/join_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/join_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/join_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/join_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/join_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/join_view.h'}} #include <__ranges/join_view.h> +// expected-error@-1 {{header '<__ranges/join_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/join_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/join_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/join_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/join_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/non_propagating_cache.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/non_propagating_cache.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/non_propagating_cache.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/non_propagating_cache.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/non_propagating_cache.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/non_propagating_cache.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/non_propagating_cache.h'}} #include <__ranges/non_propagating_cache.h> +// expected-error@-1 {{header '<__ranges/non_propagating_cache.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/non_propagating_cache.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/non_propagating_cache.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/non_propagating_cache.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/non_propagating_cache.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/owning_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/owning_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/owning_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/owning_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/owning_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/owning_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/owning_view.h'}} #include <__ranges/owning_view.h> +// expected-error@-1 {{header '<__ranges/owning_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/owning_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/owning_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/owning_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/owning_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/range_adaptor.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/range_adaptor.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/range_adaptor.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/range_adaptor.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/range_adaptor.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/range_adaptor.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/range_adaptor.h'}} #include <__ranges/range_adaptor.h> +// expected-error@-1 {{header '<__ranges/range_adaptor.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/range_adaptor.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/range_adaptor.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/range_adaptor.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/range_adaptor.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rbegin.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rbegin.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/rbegin.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/rbegin.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rbegin.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rbegin.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/rbegin.h'}} #include <__ranges/rbegin.h> +// expected-error@-1 {{header '<__ranges/rbegin.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rbegin.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rbegin.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rbegin.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rbegin.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/ref_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/ref_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/ref_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/ref_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/ref_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/ref_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/ref_view.h'}} #include <__ranges/ref_view.h> +// expected-error@-1 {{header '<__ranges/ref_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/ref_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/ref_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/ref_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/ref_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rend.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rend.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/rend.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/rend.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rend.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rend.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/rend.h'}} #include <__ranges/rend.h> +// expected-error@-1 {{header '<__ranges/rend.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rend.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rend.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rend.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/rend.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/reverse_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/reverse_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/reverse_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/reverse_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/reverse_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/reverse_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/reverse_view.h'}} #include <__ranges/reverse_view.h> +// expected-error@-1 {{header '<__ranges/reverse_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/reverse_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/reverse_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/reverse_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/reverse_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/single_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/single_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/single_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/single_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/single_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/single_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/single_view.h'}} #include <__ranges/single_view.h> +// expected-error@-1 {{header '<__ranges/single_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/single_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/single_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/single_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/single_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/size.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/size.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/size.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/size.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/size.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/size.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/size.h'}} #include <__ranges/size.h> +// expected-error@-1 {{header '<__ranges/size.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/size.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/size.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/size.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/size.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/subrange.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/subrange.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/subrange.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/subrange.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/subrange.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/subrange.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/subrange.h'}} #include <__ranges/subrange.h> +// expected-error@-1 {{header '<__ranges/subrange.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/subrange.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/subrange.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/subrange.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/subrange.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/take_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/take_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/take_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/take_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/take_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/take_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/take_view.h'}} #include <__ranges/take_view.h> +// expected-error@-1 {{header '<__ranges/take_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/take_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/take_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/take_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/take_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/transform_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/transform_view.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/transform_view.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/transform_view.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/transform_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/transform_view.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/transform_view.h'}} #include <__ranges/transform_view.h> +// expected-error@-1 {{header '<__ranges/transform_view.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/transform_view.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/transform_view.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/transform_view.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/transform_view.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/view_interface.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/view_interface.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/view_interface.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/view_interface.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/view_interface.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/view_interface.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/view_interface.h'}} #include <__ranges/view_interface.h> +// expected-error@-1 {{header '<__ranges/view_interface.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/view_interface.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/view_interface.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/view_interface.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/view_interface.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/views.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/views.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/ranges/views.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/ranges/views.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/views.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/views.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__ranges/views.h'}} #include <__ranges/views.h> +// expected-error@-1 {{header '<__ranges/views.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/views.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/views.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/ranges/views.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/ranges/views.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/split_buffer.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/split_buffer.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/split_buffer.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/split_buffer.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/split_buffer.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/split_buffer.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__split_buffer'}} #include <__split_buffer> +// expected-error@-1 {{header '<__split_buffer>' is an implementation detail; #include either '' or '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/split_buffer.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/split_buffer.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/split_buffer.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/split_buffer.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/std_stream.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/std_stream.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/std_stream.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/std_stream.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/std_stream.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/std_stream.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__std_stream'}} #include <__std_stream> +// expected-error@-1 {{header '<__std_stream>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/std_stream.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/std_stream.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/std_stream.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/std_stream.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/string.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/string.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/string.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/string.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/string.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/string.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__string'}} #include <__string> +// expected-error@-1 {{header '<__string>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/string.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/string.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/string.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/string.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/thread/poll_with_backoff.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/thread/poll_with_backoff.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/thread/poll_with_backoff.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/thread/poll_with_backoff.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/thread/poll_with_backoff.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/thread/poll_with_backoff.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__thread/poll_with_backoff.h'}} #include <__thread/poll_with_backoff.h> +// expected-error@-1 {{header '<__thread/poll_with_backoff.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/thread/poll_with_backoff.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/thread/poll_with_backoff.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/thread/poll_with_backoff.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/thread/poll_with_backoff.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/thread/timed_backoff_policy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/thread/timed_backoff_policy.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/thread/timed_backoff_policy.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/thread/timed_backoff_policy.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/thread/timed_backoff_policy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/thread/timed_backoff_policy.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__thread/timed_backoff_policy.h'}} #include <__thread/timed_backoff_policy.h> +// expected-error@-1 {{header '<__thread/timed_backoff_policy.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/thread/timed_backoff_policy.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/thread/timed_backoff_policy.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/thread/timed_backoff_policy.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/thread/timed_backoff_policy.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/tuple.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/tuple.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/tuple.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/tuple.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/tuple.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/tuple.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__tuple'}} #include <__tuple> +// expected-error@-1 {{header '<__tuple>' is an implementation detail; #include either '' or '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/tuple.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/tuple.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/tuple.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/tuple.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/as_const.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/as_const.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/as_const.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/as_const.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/as_const.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/as_const.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/as_const.h'}} #include <__utility/as_const.h> +// expected-error@-1 {{header '<__utility/as_const.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/as_const.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/as_const.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/as_const.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/as_const.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/auto_cast.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/auto_cast.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/auto_cast.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/auto_cast.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/auto_cast.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/auto_cast.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/auto_cast.h'}} #include <__utility/auto_cast.h> +// expected-error@-1 {{header '<__utility/auto_cast.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/auto_cast.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/auto_cast.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/auto_cast.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/auto_cast.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/cmp.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/cmp.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/cmp.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/cmp.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/cmp.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/cmp.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/cmp.h'}} #include <__utility/cmp.h> +// expected-error@-1 {{header '<__utility/cmp.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/cmp.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/cmp.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/cmp.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/cmp.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/declval.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/declval.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/declval.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/declval.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/declval.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/declval.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/declval.h'}} #include <__utility/declval.h> +// expected-error@-1 {{header '<__utility/declval.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/declval.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/declval.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/declval.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/declval.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/exchange.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/exchange.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/exchange.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/exchange.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/exchange.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/exchange.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/exchange.h'}} #include <__utility/exchange.h> +// expected-error@-1 {{header '<__utility/exchange.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/exchange.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/exchange.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/exchange.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/exchange.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/forward.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/forward.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/forward.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/forward.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/forward.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/forward.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/forward.h'}} #include <__utility/forward.h> +// expected-error@-1 {{header '<__utility/forward.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/forward.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/forward.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/forward.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/forward.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/in_place.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/in_place.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/in_place.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/in_place.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/in_place.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/in_place.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/in_place.h'}} #include <__utility/in_place.h> +// expected-error@-1 {{header '<__utility/in_place.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/in_place.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/in_place.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/in_place.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/in_place.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/integer_sequence.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/integer_sequence.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/integer_sequence.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/integer_sequence.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/integer_sequence.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/integer_sequence.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/integer_sequence.h'}} #include <__utility/integer_sequence.h> +// expected-error@-1 {{header '<__utility/integer_sequence.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/integer_sequence.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/integer_sequence.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/integer_sequence.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/integer_sequence.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/move.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/move.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/move.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/move.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/move.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/move.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/move.h'}} #include <__utility/move.h> +// expected-error@-1 {{header '<__utility/move.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/move.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/move.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/move.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/move.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/pair.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/pair.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/pair.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/pair.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/pair.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/pair.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/pair.h'}} #include <__utility/pair.h> +// expected-error@-1 {{header '<__utility/pair.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/pair.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/pair.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/pair.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/pair.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/piecewise_construct.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/piecewise_construct.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/piecewise_construct.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/piecewise_construct.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/piecewise_construct.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/piecewise_construct.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/piecewise_construct.h'}} #include <__utility/piecewise_construct.h> +// expected-error@-1 {{header '<__utility/piecewise_construct.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/piecewise_construct.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/piecewise_construct.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/piecewise_construct.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/piecewise_construct.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/priority_tag.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/priority_tag.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/priority_tag.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/priority_tag.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/priority_tag.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/priority_tag.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/priority_tag.h'}} #include <__utility/priority_tag.h> +// expected-error@-1 {{header '<__utility/priority_tag.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/priority_tag.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/priority_tag.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/priority_tag.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/priority_tag.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/rel_ops.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/rel_ops.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/rel_ops.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/rel_ops.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/rel_ops.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/rel_ops.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/rel_ops.h'}} #include <__utility/rel_ops.h> +// expected-error@-1 {{header '<__utility/rel_ops.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/rel_ops.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/rel_ops.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/rel_ops.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/rel_ops.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/swap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/swap.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/swap.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/swap.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/swap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/swap.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/swap.h'}} #include <__utility/swap.h> +// expected-error@-1 {{header '<__utility/swap.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/swap.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/swap.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/swap.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/swap.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/to_underlying.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/to_underlying.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/to_underlying.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/to_underlying.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/to_underlying.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/to_underlying.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/to_underlying.h'}} #include <__utility/to_underlying.h> +// expected-error@-1 {{header '<__utility/to_underlying.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/to_underlying.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/to_underlying.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/to_underlying.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/to_underlying.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/transaction.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/transaction.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/transaction.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/transaction.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/transaction.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/transaction.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/transaction.h'}} #include <__utility/transaction.h> +// expected-error@-1 {{header '<__utility/transaction.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/transaction.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/transaction.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/transaction.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/transaction.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/unreachable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/unreachable.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/utility/unreachable.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/utility/unreachable.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/unreachable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/unreachable.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__utility/unreachable.h'}} #include <__utility/unreachable.h> +// expected-error@-1 {{header '<__utility/unreachable.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/utility/unreachable.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/utility/unreachable.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/utility/unreachable.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/utility/unreachable.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/variant/monostate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/variant/monostate.header.verify.cpp copy from libcxx/test/libcxx/diagnostics/detail.headers/variant/monostate.module.verify.cpp copy to libcxx/test/libcxx/diagnostics/detail.headers/variant/monostate.header.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/variant/monostate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/variant/monostate.header.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -6,10 +7,14 @@ // //===----------------------------------------------------------------------===// -// REQUIRES: modules-build +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER // WARNING: This test was generated by 'generate_private_header_tests.py' // and should not be edited manually. -// expected-error@*:* {{use of private header from outside its module: '__variant/monostate.h'}} #include <__variant/monostate.h> +// expected-error@-1 {{header '<__variant/monostate.h>' is an implementation detail; #include '' instead}} diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/variant/monostate.module.verify.cpp b/libcxx/test/libcxx/diagnostics/detail.headers/variant/monostate.module.verify.cpp --- a/libcxx/test/libcxx/diagnostics/detail.headers/variant/monostate.module.verify.cpp +++ b/libcxx/test/libcxx/diagnostics/detail.headers/variant/monostate.module.verify.cpp @@ -1,3 +1,4 @@ +// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/libcxx/utils/generate_private_header_tests.py b/libcxx/utils/generate_private_header_tests.py --- a/libcxx/utils/generate_private_header_tests.py +++ b/libcxx/utils/generate_private_header_tests.py @@ -25,8 +25,32 @@ script_name, include_path, detail_header_test_root = get_libcxx_paths() -def generate_test(header): - return f''' +def generate_header_test(header, include_instead): + return f'''// -*- C++ -*- +//===----------------------------------------------------------------------===// +// +// 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 +// +//===----------------------------------------------------------------------===// + +// UNSUPPORTED: modules-build +// UNSUPPORTED: clang-11, clang-12, clang-13 +// UNSUPPORTED: apple-clang-11, apple-clang-12, apple-clang-13 +// UNSUPPORTED: gcc-11 +// ADDITIONAL_COMPILE_FLAGS: -U_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER + +// WARNING: This test was generated by '{script_name}' +// and should not be edited manually. + +#include <{header}> +// expected-error@-1 {{{{header '<{header}>' is an implementation detail; #include {include_instead} instead}}}} +''' + + +def generate_module_test(header): + return f'''// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. @@ -42,7 +66,7 @@ // expected-error@*:* {{{{use of private header from outside its module: '{header}'}}}} #include <{header}> -'''[1:] +''' def relative_path(path): @@ -58,6 +82,35 @@ ] +def find_header_name(header, directory): + """Returns part of the diagnostic for `#pragma clang include_instead`. This + usually matches the subdirectory the header lives in (e.g. a header in + `__algorithm` will return "''"), but some headers are + special-cased. + """ + + # Most of the special-cased headers are in the top-level include directory + # (and don't have a point of reference for us to hook on to), but any + # sub-level header that is exported by multiple top-level headers (e.g. + # __compare/compare_three_way.h) is also included in this module map, as the + # diagnostic needs to include more than our simple heuristic. + header_map = { + 'bit_reference': "either '' or ''", + 'bits': "one of {'', '', '', '', '', '', '', ''}", + 'hash_table': "either '' or ''", + 'locale': "''", + 'mutex_base': "either '' or ''", + 'node_handle': "one of {'', '', '', ''}", + 'split_buffer': "either '' or ''", + 'std_stream': "''", + 'string': "''", + 'threading_support': "one of {'', '', '', ''}", + 'tree': "either '' or ''", + 'tuple': "either '' or ''", + } + return header_map[header] if header in header_map else f"'<{directory[:-1]}>'" + + def main(): paths = [ relative_path(p) for p in Path(include_path).rglob('*') @@ -68,11 +121,18 @@ path_with_subdir = re.search(r'__(\w+)/(\w+)', path) directory = path_with_subdir.group(1) + '/' if path_with_subdir else "" file = path_with_subdir.group(2) if path_with_subdir else path[2:] - path_to_write = f'{detail_header_test_root}/{directory}{file}.module.verify.cpp' Path(f'{detail_header_test_root}/{directory}').mkdir(exist_ok=True) assert os.path.exists(f'{detail_header_test_root}/{directory}') + + path_to_write = f'{detail_header_test_root}/{directory}{file}.header.verify.cpp' + include_instead = find_header_name(file, directory) + if include_instead != "'<>'": + with open(path_to_write, 'w') as f: + f.write(generate_header_test(path, include_instead)) + + path_to_write = f'{detail_header_test_root}/{directory}{file}.module.verify.cpp' with open(path_to_write, 'w') as f: - f.write(generate_test(path)) + f.write(generate_module_test(path)) if __name__ == '__main__': diff --git a/libcxx/test/libcxx/diagnostics/detail.headers/bits.module.verify.cpp b/libcxxabi/include/threading_support.h copy from libcxx/test/libcxx/diagnostics/detail.headers/bits.module.verify.cpp copy to libcxxabi/include/threading_support.h --- a/libcxx/test/libcxx/diagnostics/detail.headers/bits.module.verify.cpp +++ b/libcxxabi/include/threading_support.h @@ -5,11 +5,10 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// +#ifndef _LIBCXXABI_THREADING_SUPPORT_H +#define _LIBCXXABI_THREADING_SUPPORT_H -// REQUIRES: modules-build +#pragma GCC system_header +#include <__threading_support> -// WARNING: This test was generated by 'generate_private_header_tests.py' -// and should not be edited manually. - -// expected-error@*:* {{use of private header from outside its module: '__bits'}} -#include <__bits> +#endif // _LIBCXXABI_THREADING_SUPPORT_H diff --git a/libcxxabi/src/cxa_exception_storage.cpp b/libcxxabi/src/cxa_exception_storage.cpp --- a/libcxxabi/src/cxa_exception_storage.cpp +++ b/libcxxabi/src/cxa_exception_storage.cpp @@ -12,7 +12,7 @@ #include "cxa_exception.h" -#include <__threading_support> +#include "threading_support.h" #if defined(_LIBCXXABI_HAS_NO_THREADS) diff --git a/libcxxabi/src/cxa_guard_impl.h b/libcxxabi/src/cxa_guard_impl.h --- a/libcxxabi/src/cxa_guard_impl.h +++ b/libcxxabi/src/cxa_guard_impl.h @@ -56,7 +56,7 @@ #include #include -#include <__threading_support> +#include "threading_support.h" #ifndef _LIBCXXABI_HAS_NO_THREADS # if defined(__ELF__) && defined(_LIBCXXABI_LINK_PTHREAD_LIB) # pragma comment(lib, "pthread") diff --git a/libcxxabi/src/cxa_thread_atexit.cpp b/libcxxabi/src/cxa_thread_atexit.cpp --- a/libcxxabi/src/cxa_thread_atexit.cpp +++ b/libcxxabi/src/cxa_thread_atexit.cpp @@ -8,7 +8,7 @@ #include "abort_message.h" #include "cxxabi.h" -#include <__threading_support> +#include "threading_support.h" #ifndef _LIBCXXABI_HAS_NO_THREADS #if defined(__ELF__) && defined(_LIBCXXABI_LINK_PTHREAD_LIB) #pragma comment(lib, "pthread") diff --git a/libcxxabi/src/fallback_malloc.cpp b/libcxxabi/src/fallback_malloc.cpp --- a/libcxxabi/src/fallback_malloc.cpp +++ b/libcxxabi/src/fallback_malloc.cpp @@ -8,7 +8,7 @@ #include "fallback_malloc.h" -#include <__threading_support> +#include "threading_support.h" #ifndef _LIBCXXABI_HAS_NO_THREADS #if defined(__ELF__) && defined(_LIBCXXABI_LINK_PTHREAD_LIB) #pragma comment(lib, "pthread") diff --git a/libcxxabi/test/test_exception_storage.pass.cpp b/libcxxabi/test/test_exception_storage.pass.cpp --- a/libcxxabi/test/test_exception_storage.pass.cpp +++ b/libcxxabi/test/test_exception_storage.pass.cpp @@ -9,7 +9,7 @@ #include #include #include -#include <__threading_support> +#include "threading_support.h" #include #include "../src/cxa_exception.h" diff --git a/libcxxabi/test/test_fallback_malloc.pass.cpp b/libcxxabi/test/test_fallback_malloc.pass.cpp --- a/libcxxabi/test/test_fallback_malloc.pass.cpp +++ b/libcxxabi/test/test_fallback_malloc.pass.cpp @@ -9,7 +9,7 @@ #include #include -#include <__threading_support> +#include "threading_support.h" typedef std::deque container; diff --git a/llvm/utils/gn/secondary/libcxxabi/include/BUILD.gn b/llvm/utils/gn/secondary/libcxxabi/include/BUILD.gn --- a/llvm/utils/gn/secondary/libcxxabi/include/BUILD.gn +++ b/llvm/utils/gn/secondary/libcxxabi/include/BUILD.gn @@ -4,6 +4,7 @@ sources = [ "__cxxabi_config.h", "cxxabi.h", + "threading_support.h", ] outputs = [ "$root_build_dir/include/c++/v1/{{source_target_relative}}" ] }