Skip to content

Commit ba08520

Browse files
committed
Enforce clang-format on tombstone_receiver
Bug: b/512215781
1 parent 8bb0983 commit ba08520

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

base/cvd/cuttlefish/host/commands/tombstone_receiver/BUILD.bazel

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ package(
66

77
cf_cc_binary(
88
name = "tombstone_receiver",
9-
srcs = [
10-
"main.cpp",
11-
],
12-
clang_format_enabled = False,
9+
srcs = ["main.cpp"],
1310
deps = [
1411
"//cuttlefish/common/libs/fs",
1512
"//cuttlefish/flag_parser",

base/cvd/cuttlefish/host/commands/tombstone_receiver/main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17-
1817
#include <chrono>
1918
#include <fstream>
2019

21-
#include <fmt/format.h>
2220
#include "absl/log/check.h"
2321
#include "absl/log/log.h"
22+
#include "fmt/format.h"
2423

2524
#include "cuttlefish/common/libs/fs/shared_fd.h"
2625
#include "cuttlefish/common/libs/fs/shared_select.h"
@@ -39,7 +38,7 @@ static std::string next_tombstone_path(const std::string& dir) {
3938
auto retval = fmt::format("{}/tombstone_{:%Y-%m-%d-%H%M%S}", dir, in_time);
4039

4140
// Gives tombstones unique names
42-
if(retval == last_tombstone_name) {
41+
if (retval == last_tombstone_name) {
4342
num_tombstones_in_last_second++;
4443
retval += "_" + std::to_string(num_tombstones_in_last_second);
4544
} else {

0 commit comments

Comments
 (0)