Skip to content

Commit 444c42a

Browse files
committed
cvd: Apply include-cleaner to key_equals_value
Apply the `with_include_cleaner` clang-tidy configuration to the `key_equals_value` directory. Fix the resulting missing include errors in `key_equals_value_test.cc`. Assisted-by: Gemini:Flash-Preview
1 parent 0ce57aa commit 444c42a

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

base/cvd/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ filegroup(
2727
name = "clang_tidy_config",
2828
srcs = [
2929
".clang-tidy",
30+
"//cuttlefish/common/libs/key_equals_value:.clang-tidy",
3031
"//cuttlefish/host/commands/assemble_cvd/android_build:.clang-tidy",
3132
"//cuttlefish/host/commands/cvd/cli/commands:.clang-tidy",
3233
"//cuttlefish/host/commands/kernel_log_monitor:.clang-tidy",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../clang_tidy_configs/with_include_cleaner

base/cvd/cuttlefish/common/libs/key_equals_value/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ package(
44
default_visibility = ["//:android_cuttlefish"],
55
)
66

7+
exports_files([".clang-tidy"])
8+
79
cf_cc_library(
810
name = "key_equals_value",
911
srcs = ["key_equals_value.cc"],

base/cvd/cuttlefish/common/libs/key_equals_value/key_equals_value_test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
#include "cuttlefish/common/libs/key_equals_value/key_equals_value.h"
1717

18+
#include <functional>
19+
#include <map>
1820
#include <string>
1921

2022
#include "gmock/gmock-matchers.h"

0 commit comments

Comments
 (0)