Skip to content

Commit dfbfaa2

Browse files
Improve: Sorting includes
Disables automatic lexicographic ordering in favor of manual, putting lighter includes first. #28 (comment) Co-authored-by: RazielXYZ <[email protected]>
1 parent 776b7a4 commit dfbfaa2

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ BraceWrapping:
4444
SplitEmptyNamespace: false
4545
IndentBraces: false
4646

47-
SortIncludes: true
47+
SortIncludes: false
4848
SortUsingDeclarations: true
4949

5050
SpaceAfterCStyleCast: false

less_slow.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,10 +1836,10 @@ BENCHMARK_CAPTURE(theoretic_tops, i7_amx_avx512, tops_i7_amx_avx512fma_asm_kerne
18361836
*/
18371837

18381838
#include <cassert> // `assert`
1839-
#include <fstream> // `std::ifstream`
1840-
#include <iterator> // `std::random_access_iterator_tag`
18411839
#include <memory> // `std::assume_aligned`, `std::unique_ptr`
18421840
#include <string> // `std::string`, `std::stoull`
1841+
#include <iterator> // `std::random_access_iterator_tag`
1842+
#include <fstream> // `std::ifstream`
18431843

18441844
/**
18451845
* @brief Reads the contents of a file from the specified path into a string.
@@ -2801,12 +2801,6 @@ static void pipeline_unifex(bm::State &state) {
28012801
BENCHMARK(pipeline_unifex);
28022802
#endif // TODO: UnifEx needs more work
28032803
#pragma endregion // Ranges and Iterators
2804-
#pragma region Variants, Tuples, and State Machines
2805-
2806-
#include <tuple> // `std::tuple`
2807-
#include <variant> // `std::variant`
2808-
2809-
#pragma endregion // Variants, Tuples, and State Machines
28102804

28112805
#pragma region Virtual Functions and Polymorphism
28122806

@@ -5055,9 +5049,9 @@ struct log_format_t {
50555049

50565050
#endif // defined(__cpp_lib_format)
50575051

5058-
#include <fmt/chrono.h> // formatting for `std::chrono` types
5059-
#include <fmt/compile.h> // compile-time format strings
50605052
#include <fmt/core.h> // `std::format_to_n`
5053+
#include <fmt/compile.h> // compile-time format strings
5054+
#include <fmt/chrono.h> // formatting for `std::chrono` types
50615055

50625056
struct log_fmt_t {
50635057
std::size_t operator()( //

0 commit comments

Comments
 (0)