Skip to content

Commit ce24073

Browse files
Databean0405ysj
authored andcommitted
Enforce clang-format on host/libs/version
Bug: b/512215781
1 parent e2afa7c commit ce24073

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

base/cvd/cuttlefish/host/libs/version/BUILD.bazel

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,10 @@ genrule(
1717
outs = ["version.h"],
1818
cmd = "$(location replace_with_stamp_values.sh) bazel-out/stable-status.txt $< $@",
1919
stamp = 1,
20-
tools = [
21-
"replace_with_stamp_values.sh",
22-
],
20+
tools = ["replace_with_stamp_values.sh"],
2321
)
2422

2523
cf_cc_library(
2624
name = "version",
27-
hdrs = [
28-
":build_version_header",
29-
],
30-
clang_format_enabled = False,
25+
hdrs = [":build_version_header"],
3126
)

base/cvd/cuttlefish/host/libs/version/build_version.h.in

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@
2020

2121
namespace cuttlefish {
2222

23-
std::string GetVcsId() {
24-
return "@VCS_TAG@";
25-
}
23+
std::string GetVcsId() { return "@VCS_TAG@"; }
2624

27-
std::string GetCuttlefishCommonVersion() {
28-
return "@CF_VER_TAG@";
29-
}
25+
std::string GetCuttlefishCommonVersion() { return "@CF_VER_TAG@"; }
3026

31-
} // namespace cuttlefish
27+
} // namespace cuttlefish

0 commit comments

Comments
 (0)