[libcxx-commits] [libcxx] [libc++] Slight reorganization of the benchmarks (PR #119625)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Dec 11 14:41:33 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 3c464d23682b0f9e6f70965e8f8f3861c9ba5417 b724057e06eae9baf5ac4031bb28cc24710a4967 --extensions cpp,h -- libcxx/test/benchmarks/algorithms/algorithms.partition_point.bench.cpp libcxx/test/benchmarks/algorithms/lexicographical_compare_three_way.bench.cpp libcxx/test/benchmarks/containers/ContainerBenchmarks.h libcxx/test/benchmarks/containers/deque.bench.cpp libcxx/test/benchmarks/containers/deque_iterator.bench.cpp libcxx/test/benchmarks/containers/map.bench.cpp libcxx/test/benchmarks/containers/ordered_set.bench.cpp libcxx/test/benchmarks/containers/string.bench.cpp libcxx/test/benchmarks/containers/unordered_set_operations.bench.cpp libcxx/test/benchmarks/containers/vector_operations.bench.cpp libcxx/test/benchmarks/format/format.bench.cpp libcxx/test/benchmarks/format/format_to.bench.cpp libcxx/test/benchmarks/format/format_to_n.bench.cpp libcxx/test/benchmarks/format/formatted_size.bench.cpp libcxx/test/benchmarks/format/formatter_float.bench.cpp libcxx/test/benchmarks/format/formatter_int.bench.cpp libcxx/test/benchmarks/format/std_format_spec_string_unicode.bench.cpp libcxx/test/benchmarks/format/std_format_spec_string_unicode_escape.bench.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/benchmarks/format/std_format_spec_string_unicode.bench.cpp b/libcxx/test/benchmarks/format/std_format_spec_string_unicode.bench.cpp
index 1c859e1b2b..56cfd07bc8 100644
--- a/libcxx/test/benchmarks/format/std_format_spec_string_unicode.bench.cpp
+++ b/libcxx/test/benchmarks/format/std_format_spec_string_unicode.bench.cpp
@@ -6,15 +6,15 @@
// UNSUPPORTED: c++03, c++11, c++14, c++17
-# include <concepts>
-# include <format>
-# include <string_view>
+#include <concepts>
+#include <format>
+#include <string_view>
-# include "benchmark/benchmark.h"
-# include "make_string.h"
-# include "test_macros.h"
+#include "benchmark/benchmark.h"
+#include "make_string.h"
+#include "test_macros.h"
-# define SV(S) MAKE_STRING_VIEW(CharT, S)
+#define SV(S) MAKE_STRING_VIEW(CharT, S)
#if _LIBCPP_HAS_UNICODE
diff --git a/libcxx/test/benchmarks/format/std_format_spec_string_unicode_escape.bench.cpp b/libcxx/test/benchmarks/format/std_format_spec_string_unicode_escape.bench.cpp
index 4a1eb47a71..b66707fded 100644
--- a/libcxx/test/benchmarks/format/std_format_spec_string_unicode_escape.bench.cpp
+++ b/libcxx/test/benchmarks/format/std_format_spec_string_unicode_escape.bench.cpp
@@ -12,13 +12,13 @@
// datasets to give an impression how the amount of multibyte UTF-8 sequences
// and larger grapheme clusters affect the performance.
-# include <concepts>
-# include <format>
-# include <string_view>
+#include <concepts>
+#include <format>
+#include <string_view>
-# include "benchmark/benchmark.h"
-# include "make_string.h"
-# include "test_macros.h"
+#include "benchmark/benchmark.h"
+#include "make_string.h"
+#include "test_macros.h"
#if _LIBCPP_HAS_UNICODE
``````````
</details>
https://github.com/llvm/llvm-project/pull/119625
More information about the libcxx-commits
mailing list