diff options
| author | Dan Willemsen <dwillemsen@google.com> | 2020-06-11 17:49:36 -0700 |
|---|---|---|
| committer | Dan Willemsen <dwillemsen@google.com> | 2020-06-11 21:20:36 -0700 |
| commit | 546261a74b75581fb35721b8def124821f2edb53 (patch) | |
| tree | d4ac740e8a2921c7bd7c15f1842811cb2890fd0e | |
| parent | 961958ac13c263566f391cbf87a72a438f2fc909 (diff) | |
| download | platform_build_kati-546261a74b75581fb35721b8def124821f2edb53.tar.gz platform_build_kati-546261a74b75581fb35721b8def124821f2edb53.tar.bz2 platform_build_kati-546261a74b75581fb35721b8def124821f2edb53.zip | |
Reformat with clang-format-9
Travis was using clang-format-7
Change-Id: Ia9b6e2490927ebc20ec6549d39ee70c11bfbb766
| -rw-r--r-- | affinity.cc | 4 | ||||
| -rw-r--r-- | file_cache.h | 1 | ||||
| -rw-r--r-- | fileutil_bench.cc | 2 | ||||
| -rw-r--r-- | find_test.cc | 1 | ||||
| -rw-r--r-- | ninja_test.cc | 3 | ||||
| -rw-r--r-- | string_piece.cc | 4 |
6 files changed, 9 insertions, 6 deletions
diff --git a/affinity.cc b/affinity.cc index 92320ee..9e855f3 100644 --- a/affinity.cc +++ b/affinity.cc @@ -21,12 +21,12 @@ #ifdef __linux__ -#include <random> - #include <sched.h> #include <sys/types.h> #include <unistd.h> +#include <random> + void SetAffinityForSingleThread() { cpu_set_t cs; CPU_ZERO(&cs); diff --git a/file_cache.h b/file_cache.h index e344946..fac2077 100644 --- a/file_cache.h +++ b/file_cache.h @@ -16,7 +16,6 @@ #define FILE_CACHE_H_ #include <string> - #include <unordered_set> using namespace std; diff --git a/fileutil_bench.cc b/fileutil_bench.cc index 367c125..429d004 100644 --- a/fileutil_bench.cc +++ b/fileutil_bench.cc @@ -15,7 +15,9 @@ // +build ignore #include <benchmark/benchmark.h> + #include <cstdio> + #include "fileutil.h" static void BM_RunCommand(benchmark::State& state) { diff --git a/find_test.cc b/find_test.cc index c9c86b2..e8d521c 100644 --- a/find_test.cc +++ b/find_test.cc @@ -18,6 +18,7 @@ #include <stdlib.h> #include <unistd.h> + #include <string> #include "fileutil.h" diff --git a/ninja_test.cc b/ninja_test.cc index 2a7fdc1..15b0693 100644 --- a/ninja_test.cc +++ b/ninja_test.cc @@ -14,10 +14,11 @@ // +build ignore +#include "ninja.h" + #include <assert.h> #include "log.h" -#include "ninja.h" #include "testutil.h" namespace { diff --git a/string_piece.cc b/string_piece.cc index e739219..32a7be0 100644 --- a/string_piece.cc +++ b/string_piece.cc @@ -19,6 +19,8 @@ // +build ignore +#include "string_piece.h" + #include <ctype.h> #include <limits.h> #include <stdint.h> @@ -26,8 +28,6 @@ #include <algorithm> #include <ostream> -#include "string_piece.h" - typedef StringPiece::size_type size_type; bool operator==(const StringPiece& x, const StringPiece& y) { |
