libcxx: Rename .hpp files in libcxx/test/support to .h

LLVM uses .h as its extension for header files.

Files renamed using:

    for f in libcxx/test/support/*.hpp; do git mv $f ${f%.hpp}.h; done

References to the files updated using:

    for f in $(git diff master | grep 'rename from' | cut -f 3 -d ' '); do
        a=$(basename $f);
        echo $a;
        rg -l $a libcxx | xargs sed -i '' "s/$a/${a%.hpp}.h/";
    done

HPP include guards updated manually using:

    for f in $(git diff master | grep 'rename from' | cut -f 3 -d ' '); do
      echo ${f%.hpp}.h ;
    done | xargs mvim

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

llvm-svn: 369481
This commit is contained in:
Nico Weber 2019-08-21 00:14:12 +00:00
parent 56606a4db3
commit cc89063bff
447 changed files with 723 additions and 723 deletions

View File

@ -1,7 +1,7 @@
#include "benchmark/benchmark.h"
#include "GenerateInput.hpp"
#include "test_iterators.h"
#include "filesystem_include.hpp"
#include "filesystem_include.h"
static const size_t TestNumInputs = 1024;

View File

@ -17,7 +17,7 @@
#include <type_traits>
#include "test_macros.h"
#include "user_defined_integral.hpp"
#include "user_defined_integral.h"
namespace {

View File

@ -16,7 +16,7 @@
#include <cassert>
#include "test_macros.h"
#include "count_new.hpp"
#include "count_new.h"
void test_default_does_not_allocate() {
DisableAllocationGuard g;

View File

@ -16,7 +16,7 @@
#include <cassert>
#include "test_macros.h"
#include "count_new.hpp"
#include "count_new.h"
void test_default_does_not_allocate() {
DisableAllocationGuard g;

View File

@ -21,7 +21,7 @@
#include <queue>
#include "min_allocator.h"
#include "rapid-cxx-test.hpp"
#include "rapid-cxx-test.h"
template <class Adaptor>
struct ContainerAdaptor : public Adaptor {

View File

@ -22,7 +22,7 @@
#include <set>
#include <utility>
#include <cassert>
#include "container_debug_tests.hpp"
#include "container_debug_tests.h"
#include "test_macros.h"
#include "debug_mode_helper.h"

View File

@ -24,7 +24,7 @@
#include <list>
#include <thread>
#include <vector>
#include "container_debug_tests.hpp"
#include "container_debug_tests.h"
#include "test_macros.h"

View File

@ -22,7 +22,7 @@
#include <list>
#include <vector>
#include <deque>
#include "container_debug_tests.hpp"
#include "container_debug_tests.h"
#include "test_macros.h"
#include "debug_mode_helper.h"

View File

@ -21,7 +21,7 @@
#include <vector>
#include "test_macros.h"
#include "container_debug_tests.hpp"
#include "container_debug_tests.h"
#include "debug_mode_helper.h"
using namespace IteratorDebugChecks;

View File

@ -21,7 +21,7 @@
#include <unordered_set>
#include <utility>
#include <cassert>
#include "container_debug_tests.hpp"
#include "container_debug_tests.h"
#include "test_macros.h"
#include "debug_mode_helper.h"

View File

@ -45,7 +45,7 @@
#include <tuple>
#include <cassert>
#include <cstdlib>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -22,7 +22,7 @@ int AssertCount = 0;
#include <type_traits>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -22,7 +22,7 @@ int AssertCount = 0;
#include <type_traits>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -15,13 +15,13 @@
// RUN: %build -I%libcxx_src_root/src/filesystem
// RUN: %run
#include "filesystem_include.hpp"
#include "filesystem_include.h"
#include <type_traits>
#include <cassert>
#include "test_macros.h"
#include "rapid-cxx-test.hpp"
#include "filesystem_test_helper.hpp"
#include "rapid-cxx-test.h"
#include "filesystem_test_helper.h"
#include "filesystem_common.h"

View File

@ -16,13 +16,13 @@
// class path
#define _LIBCPP_DEBUG 0
#include "filesystem_include.hpp"
#include "filesystem_include.h"
#include <iterator>
#include <type_traits>
#include <cassert>
#include "test_macros.h"
#include "filesystem_test_helper.hpp"
#include "filesystem_test_helper.h"
#include "debug_mode_helper.h"
int main(int, char**) {

View File

@ -12,7 +12,7 @@
// class path
#include "filesystem_include.hpp"
#include "filesystem_include.h"
#include <iterator>

View File

@ -20,14 +20,14 @@
// * A character array, which points to a NTCTS after array-to-pointer decay.
#include "filesystem_include.hpp"
#include "filesystem_include.h"
#include <type_traits>
#include <cassert>
#include "test_macros.h"
#include "test_iterators.h"
#include "min_allocator.h"
#include "constexpr_char_traits.hpp"
#include "constexpr_char_traits.h"
using fs::__is_pathable;

View File

@ -21,7 +21,7 @@
#include <cstdint>
#include <cassert>
#include "user_defined_integral.hpp"
#include "user_defined_integral.h"
#include "test_macros.h"

View File

@ -24,7 +24,7 @@
#include <type_traits>
#include <cassert>
#include "archetypes.hpp"
#include "archetypes.h"
#include "test_macros.h"

View File

@ -22,7 +22,7 @@
#include <system_error>
#include "test_macros.h"
#include "test_convertible.hpp"
#include "test_convertible.h"
#include "MoveOnly.h"
#if defined(_LIBCPP_ENABLE_TUPLE_IMPLICIT_REDUCED_ARITY_EXTENSION)

View File

@ -24,7 +24,7 @@
#include <system_error>
#include "test_macros.h"
#include "test_convertible.hpp"
#include "test_convertible.h"
#include "MoveOnly.h"

View File

@ -20,7 +20,7 @@
#include <memory>
#include <cassert>
#include "archetypes.hpp"
#include "archetypes.h"
#include "test_macros.h"

View File

@ -20,7 +20,7 @@
#include <type_traits>
#include <utility>
#include "archetypes.hpp"
#include "archetypes.h"
#include "test_macros.h"

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "user_defined_integral.hpp"
#include "user_defined_integral.h"
// #if TEST_STD_VER > 17
// TEST_CONSTEXPR bool test_constexpr() {

View File

@ -17,7 +17,7 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "user_defined_integral.hpp"
#include "user_defined_integral.h"
// #if TEST_STD_VER > 17
// TEST_CONSTEXPR bool test_constexpr() {

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "user_defined_integral.hpp"
#include "user_defined_integral.h"
#if TEST_STD_VER > 17
TEST_CONSTEXPR bool test_constexpr() {

View File

@ -24,7 +24,7 @@
#include <cassert>
#include "test_iterators.h"
#include "user_defined_integral.hpp"
#include "user_defined_integral.h"
struct gen_test
{

View File

@ -19,7 +19,7 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "counting_predicates.hpp"
#include "counting_predicates.h"
struct is_odd {
TEST_CONSTEXPR bool operator()(const int &i) const { return i & 1; }

View File

@ -21,7 +21,7 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "counting_predicates.hpp"
#include "counting_predicates.h"
TEST_CONSTEXPR bool equal2 ( int i ) { return i == 2; }

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "user_defined_integral.hpp"
#include "user_defined_integral.h"
#if TEST_STD_VER > 17
TEST_CONSTEXPR bool test_constexpr() {

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "user_defined_integral.hpp"
#include "user_defined_integral.h"
#if TEST_STD_VER > 17
TEST_CONSTEXPR bool eq(int a, int b) { return a == b; }

View File

@ -24,7 +24,7 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "counting_predicates.hpp"
#include "counting_predicates.h"
#if TEST_STD_VER > 17
TEST_CONSTEXPR bool eq(int a, int b) { return a == b; }

View File

@ -20,7 +20,7 @@
#include <cassert>
#include "test_macros.h"
#include "counting_predicates.hpp"
#include "counting_predicates.h"
#include "test_iterators.h"
struct indirect_less

View File

@ -56,7 +56,7 @@ struct S {
#endif // TEST_STD_VER >= 11
#include "test_iterators.h"
#include "counting_predicates.hpp"
#include "counting_predicates.h"
std::mt19937 randomness;

View File

@ -26,7 +26,7 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "counting_predicates.hpp"
#include "counting_predicates.h"
// #if TEST_STD_VER > 17
// TEST_CONSTEXPR bool test_constexpr() {

View File

@ -21,7 +21,7 @@
#include <cassert>
#include "test_macros.h"
#include "counting_predicates.hpp"
#include "counting_predicates.h"
bool all_equal(int, int) { return false; } // everything is equal

View File

@ -16,9 +16,9 @@
#include <cassert>
#include "test_macros.h"
#include "count_new.hpp"
#include "count_new.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#if TEST_STD_VER >= 11
#include "container_test_types.h"
#endif

View File

@ -18,7 +18,7 @@
#include <cassert>
#include "test_macros.h"
#include "count_new.hpp"
#include "count_new.h"
#include "MoveOnly.h"
#include "min_allocator.h"
#include "container_test_types.h"

View File

@ -17,7 +17,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "is_transparent.h"
int main(int, char**)

View File

@ -20,7 +20,7 @@
#include <utility>
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "test_macros.h"
struct Comp {

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "is_transparent.h"
int main(int, char**)

View File

@ -23,7 +23,7 @@
#include <utility>
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "test_macros.h"
struct Comp {

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "is_transparent.h"
int main(int, char**)

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "is_transparent.h"
int main(int, char**)

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
int main(int, char**)
{

View File

@ -17,7 +17,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "is_transparent.h"
int main(int, char**)

View File

@ -20,7 +20,7 @@
#include <utility>
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "test_macros.h"
struct Comp {

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "is_transparent.h"
int main(int, char**)

View File

@ -23,7 +23,7 @@
#include <utility>
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "test_macros.h"
struct Comp {

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "is_transparent.h"
int main(int, char**)

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "is_transparent.h"
int main(int, char**)

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "is_transparent.h"
int main(int, char**)

View File

@ -17,7 +17,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
int main(int, char**)
{

View File

@ -22,7 +22,7 @@
#include <utility>
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "test_macros.h"
struct Comp {

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
int main(int, char**)
{

View File

@ -24,7 +24,7 @@
#include <utility>
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "test_macros.h"
struct Comp {

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
int main(int, char**)
{

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
int main(int, char**)
{

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
int main(int, char**)
{

View File

@ -17,7 +17,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
int main(int, char**)
{

View File

@ -22,7 +22,7 @@
#include <utility>
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "test_macros.h"
struct Comp {

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
int main(int, char**)
{

View File

@ -24,7 +24,7 @@
#include <utility>
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
#include "test_macros.h"
struct Comp {

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
int main(int, char**)
{

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
int main(int, char**)
{

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "private_constructor.hpp"
#include "private_constructor.h"
int main(int, char**)
{

View File

@ -23,7 +23,7 @@
#include <cassert>
#include "test_macros.h"
#include "count_new.hpp"
#include "count_new.h"
#include "container_test_types.h"
#include "assert_checkpoint.h"

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "counting_predicates.hpp"
#include "counting_predicates.h"
template <class L, class Predicate>

View File

@ -18,7 +18,7 @@
#include "test_macros.h"
#include "test_iterators.h"
#include "min_allocator.h"
#include "count_new.hpp"
#include "count_new.h"
template <class List>
void test() {

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "min_allocator.h"
#include "count_new.hpp"
#include "count_new.h"
#include "test_macros.h"
template <class List>

View File

@ -16,7 +16,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "count_new.hpp"
#include "count_new.h"
template <class List>
void test()

View File

@ -17,7 +17,7 @@
#include "test_macros.h"
#include "min_allocator.h"
#include "counting_predicates.hpp"
#include "counting_predicates.h"
bool even(int i)
{

View File

@ -15,7 +15,7 @@
#include <vector>
#include "poisoned_hash_helper.hpp"
#include "poisoned_hash_helper.h"
#include "test_macros.h"
#include "min_allocator.h"

View File

@ -22,7 +22,7 @@
#include <cassert>
#include "test_macros.h"
#include "count_new.hpp"
#include "count_new.h"
#include "container_test_types.h"
#include "assert_checkpoint.h"

View File

@ -22,7 +22,7 @@
#include "test_macros.h"
#include "MoveOnly.h"
#include "min_allocator.h"
#include "count_new.hpp"
#include "count_new.h"
#if TEST_STD_VER >= 11
#include "container_test_types.h"

View File

@ -15,7 +15,7 @@
#include <system_error>
#include "poisoned_hash_helper.hpp"
#include "poisoned_hash_helper.h"
#include "test_macros.h"

View File

@ -18,7 +18,7 @@
#include <type_traits>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -18,7 +18,7 @@
#include <type_traits>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -21,7 +21,7 @@
#include <type_traits>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -21,7 +21,7 @@
#include <type_traits>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -22,7 +22,7 @@
#include <cassert>
#include "test_macros.h"
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
namespace ex = std::experimental::pmr;

View File

@ -21,7 +21,7 @@
#include <tuple>
#include <cassert>
#include <cstdlib>
#include "uses_alloc_types.hpp"
#include "uses_alloc_types.h"
#include "test_macros.h"

View File

@ -23,9 +23,9 @@
#include <cstdlib>
#include "test_macros.h"
#include "test_memory_resource.hpp"
#include "uses_alloc_types.hpp"
#include "controlled_allocators.hpp"
#include "test_memory_resource.h"
#include "uses_alloc_types.h"
#include "controlled_allocators.h"
#include "test_allocator.h"
namespace ex = std::experimental::pmr;

View File

@ -23,9 +23,9 @@
#include <cstdlib>
#include "test_macros.h"
#include "test_memory_resource.hpp"
#include "uses_alloc_types.hpp"
#include "controlled_allocators.hpp"
#include "test_memory_resource.h"
#include "uses_alloc_types.h"
#include "controlled_allocators.h"
#include "test_allocator.h"
namespace ex = std::experimental::pmr;

View File

@ -23,9 +23,9 @@
#include <cstdlib>
#include "test_macros.h"
#include "test_memory_resource.hpp"
#include "uses_alloc_types.hpp"
#include "controlled_allocators.hpp"
#include "test_memory_resource.h"
#include "uses_alloc_types.h"
#include "controlled_allocators.h"
#include "test_allocator.h"
namespace ex = std::experimental::pmr;

View File

@ -24,9 +24,9 @@
#include <cstdlib>
#include "test_macros.h"
#include "test_memory_resource.hpp"
#include "uses_alloc_types.hpp"
#include "controlled_allocators.hpp"
#include "test_memory_resource.h"
#include "uses_alloc_types.h"
#include "controlled_allocators.h"
#include "test_allocator.h"
namespace ex = std::experimental::pmr;

View File

@ -21,9 +21,9 @@
#include <cstdlib>
#include "test_macros.h"
#include "test_memory_resource.hpp"
#include "uses_alloc_types.hpp"
#include "controlled_allocators.hpp"
#include "test_memory_resource.h"
#include "uses_alloc_types.h"
#include "controlled_allocators.h"
#include "test_allocator.h"
namespace ex = std::experimental::pmr;

View File

@ -18,7 +18,7 @@
#include <type_traits>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -17,7 +17,7 @@
#include <experimental/memory_resource>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -17,7 +17,7 @@
#include <experimental/memory_resource>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -19,7 +19,7 @@
#include <type_traits>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -27,7 +27,7 @@
#include <cassert>
#include "test_macros.h"
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
namespace ex = std::experimental::pmr;

View File

@ -18,7 +18,7 @@
#include <type_traits>
#include <memory>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -28,7 +28,7 @@
#include <type_traits>
#include <cassert>
#include "constexpr_char_traits.hpp"
#include "constexpr_char_traits.h"
#include "test_macros.h"

View File

@ -31,7 +31,7 @@
#include <experimental/memory_resource>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -16,7 +16,7 @@
#include <type_traits>
#include <cassert>
#include "count_new.hpp"
#include "count_new.h"
#include "test_macros.h"

View File

@ -18,7 +18,7 @@
#include <cassert>
#include "test_macros.h"
#include "count_new.hpp"
#include "count_new.h"
namespace ex = std::experimental::pmr;

View File

@ -17,7 +17,7 @@
#include <cassert>
#include "test_macros.h"
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
namespace ex = std::experimental::pmr;

View File

@ -16,7 +16,7 @@
#include <type_traits>
#include <cassert>
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
#include "test_macros.h"

View File

@ -27,7 +27,7 @@
#include <cassert>
#include "test_macros.h"
#include "test_memory_resource.hpp"
#include "test_memory_resource.h"
using std::experimental::pmr::memory_resource;

Some files were not shown because too many files have changed in this diff Show More