瀏覽代碼

libcxx: Rename .hpp files in libcxx/benchmarks to .h

LLVM uses .h as its extension for header files.

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

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@369487 91177308-0d34-0410-b5e6-96231b3b80d8
Nico Weber 6 年之前
父節點
當前提交
630780b320

+ 0 - 0
benchmarks/CartesianBenchmarks.hpp → benchmarks/CartesianBenchmarks.h


+ 4 - 4
benchmarks/ContainerBenchmarks.hpp → benchmarks/ContainerBenchmarks.h

@@ -7,12 +7,12 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef BENCHMARK_CONTAINER_BENCHMARKS_HPP
-#define BENCHMARK_CONTAINER_BENCHMARKS_HPP
+#ifndef BENCHMARK_CONTAINER_BENCHMARKS_H
+#define BENCHMARK_CONTAINER_BENCHMARKS_H
 
 #include <cassert>
 
-#include "Utilities.hpp"
+#include "Utilities.h"
 #include "benchmark/benchmark.h"
 
 namespace ContainerBenchmarks {
@@ -137,4 +137,4 @@ static void BM_FindRehash(benchmark::State& st, Container c, GenInputs gen) {
 
 } // end namespace ContainerBenchmarks
 
-#endif // BENCHMARK_CONTAINER_BENCHMARKS_HPP
+#endif // BENCHMARK_CONTAINER_BENCHMARKS_H

+ 3 - 3
benchmarks/GenerateInput.hpp → benchmarks/GenerateInput.h

@@ -1,5 +1,5 @@
-#ifndef BENCHMARK_GENERATE_INPUT_HPP
-#define BENCHMARK_GENERATE_INPUT_HPP
+#ifndef BENCHMARK_GENERATE_INPUT_H
+#define BENCHMARK_GENERATE_INPUT_H
 
 #include <algorithm>
 #include <random>
@@ -141,4 +141,4 @@ inline std::vector<const char*> getRandomCStringInputs(size_t N) {
 }
 
 
-#endif // BENCHMARK_GENERATE_INPUT_HPP
+#endif // BENCHMARK_GENERATE_INPUT_H

+ 3 - 3
benchmarks/Utilities.hpp → benchmarks/Utilities.h

@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef BENCHMARK_UTILITIES_HPP
-#define BENCHMARK_UTILITIES_HPP
+#ifndef BENCHMARK_UTILITIES_H
+#define BENCHMARK_UTILITIES_H
 
 #include <cassert>
 #include <type_traits>
@@ -30,4 +30,4 @@ template <class Container, std::enable_if_t<!UtilitiesInternal::HasData<Containe
 void DoNotOptimizeData(Container &c) { benchmark::DoNotOptimize(&c); }
 
 
-#endif // BENCHMARK_UTILITIES_HPP
+#endif // BENCHMARK_UTILITIES_H

+ 2 - 2
benchmarks/algorithms.bench.cpp

@@ -7,8 +7,8 @@
 #include <utility>
 #include <vector>
 
-#include "CartesianBenchmarks.hpp"
-#include "GenerateInput.hpp"
+#include "CartesianBenchmarks.h"
+#include "GenerateInput.h"
 #include "benchmark/benchmark.h"
 #include "test_macros.h"
 

+ 2 - 2
benchmarks/algorithms.partition_point.bench.cpp

@@ -7,8 +7,8 @@
 
 #include "benchmark/benchmark.h"
 
-#include "CartesianBenchmarks.hpp"
-#include "GenerateInput.hpp"
+#include "CartesianBenchmarks.h"
+#include "GenerateInput.h"
 
 namespace {
 

+ 2 - 2
benchmarks/deque.bench.cpp

@@ -11,8 +11,8 @@
 
 #include "benchmark/benchmark.h"
 
-#include "ContainerBenchmarks.hpp"
-#include "GenerateInput.hpp"
+#include "ContainerBenchmarks.h"
+#include "GenerateInput.h"
 
 using namespace ContainerBenchmarks;
 

+ 1 - 1
benchmarks/filesystem.bench.cpp

@@ -1,5 +1,5 @@
 #include "benchmark/benchmark.h"
-#include "GenerateInput.hpp"
+#include "GenerateInput.h"
 #include "test_iterators.h"
 #include "filesystem_include.h"
 

+ 1 - 1
benchmarks/function.bench.cpp

@@ -11,7 +11,7 @@
 #include <memory>
 #include <string>
 
-#include "CartesianBenchmarks.hpp"
+#include "CartesianBenchmarks.h"
 #include "benchmark/benchmark.h"
 #include "test_macros.h"
 

+ 1 - 1
benchmarks/ordered_set.bench.cpp

@@ -14,7 +14,7 @@
 #include <string>
 #include <vector>
 
-#include "CartesianBenchmarks.hpp"
+#include "CartesianBenchmarks.h"
 #include "benchmark/benchmark.h"
 #include "test_macros.h"
 

+ 2 - 2
benchmarks/string.bench.cpp

@@ -3,8 +3,8 @@
 #include <new>
 #include <vector>
 
-#include "CartesianBenchmarks.hpp"
-#include "GenerateInput.hpp"
+#include "CartesianBenchmarks.h"
+#include "GenerateInput.h"
 #include "benchmark/benchmark.h"
 #include "test_macros.h"
 

+ 2 - 2
benchmarks/unordered_set_operations.bench.cpp

@@ -7,8 +7,8 @@
 
 #include "benchmark/benchmark.h"
 
-#include "ContainerBenchmarks.hpp"
-#include "GenerateInput.hpp"
+#include "ContainerBenchmarks.h"
+#include "GenerateInput.h"
 #include "test_macros.h"
 
 using namespace ContainerBenchmarks;

+ 2 - 2
benchmarks/vector_operations.bench.cpp

@@ -6,8 +6,8 @@
 
 #include "benchmark/benchmark.h"
 
-#include "ContainerBenchmarks.hpp"
-#include "GenerateInput.hpp"
+#include "ContainerBenchmarks.h"
+#include "GenerateInput.h"
 
 using namespace ContainerBenchmarks;