Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions base/cvd/allocd/net/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ cf_cc_library(
"netlink_client.h",
"netlink_request.h",
],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/fs",
"@abseil-cpp//absl/log",
Expand Down
6 changes: 3 additions & 3 deletions base/cvd/cuttlefish/bazel/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _cf_cc_binary_implementation(name, clang_format_enabled, clang_tidy_enabled,
cf_cc_binary = macro(
inherit_attrs = cc_binary,
attrs = {
"clang_format_enabled": attr.bool(configurable = False, default = False, doc = "Decide if a corresponding format_test target is generated"),
"clang_format_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding format_test target is generated"),
"clang_tidy_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding clang_tidy_test target is generated"),
"copts": attr.string_list(configurable = False, default = []),
"linkopts": attr.string_list(configurable = False, default = []),
Expand Down Expand Up @@ -85,7 +85,7 @@ def _cf_cc_library_implementation(name, clang_format_enabled, clang_tidy_enabled
cf_cc_library = macro(
inherit_attrs = cc_library,
attrs = {
"clang_format_enabled": attr.bool(configurable = False, default = False, doc = "Decide if a corresponding format_test target is generated"),
"clang_format_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding format_test target is generated"),
"clang_tidy_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding clang_tidy_test target is generated"),
"copts": attr.string_list(configurable = False, default = []),
},
Expand Down Expand Up @@ -123,7 +123,7 @@ def _cf_cc_test_implementation(name, clang_format_enabled, clang_tidy_enabled, c
cf_cc_test = macro(
inherit_attrs = cc_test,
attrs = {
"clang_format_enabled": attr.bool(configurable = False, default = False, doc = "Decide if a corresponding format_test target is generated"),
"clang_format_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding format_test target is generated"),
"clang_tidy_enabled": attr.bool(configurable = False, default = True, doc = "Decide if a corresponding clang_tidy_test target is generated"),
"copts": attr.string_list(configurable = False, default = []),
"deps": attr.label_list(configurable = False),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ cf_cc_binary(
"server.h",
"socket_vsock_proxy.cpp",
],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/common/libs/utils:contains",
Expand Down
1 change: 1 addition & 0 deletions base/cvd/cuttlefish/common/libs/confui/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cf_cc_library(
"protocol_types.h",
"utils.h",
],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/common/libs/utils:contains",
Expand Down
3 changes: 3 additions & 0 deletions base/cvd/cuttlefish/common/libs/fs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ cf_cc_library(
"shared_fd.h",
"shared_select.h",
],
clang_format_enabled = False,
linkopts = select({
"@platforms//os:linux": ["-lrt"],
"//conditions:default": [],
Expand All @@ -48,6 +49,7 @@ cf_cc_test(
srcs = [
"shared_fd_test.cpp",
],
clang_format_enabled = False,
deps = [
":fs",
"//libbase",
Expand All @@ -58,6 +60,7 @@ cf_cc_library(
name = "shared_fd_stream",
srcs = ["shared_fd_stream.cpp"],
hdrs = ["shared_fd_stream.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/fs",
],
Expand Down
2 changes: 0 additions & 2 deletions base/cvd/cuttlefish/common/libs/key_equals_value/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ cf_cc_library(
name = "key_equals_value",
srcs = ["key_equals_value.cc"],
hdrs = ["key_equals_value.h"],
clang_format_enabled = True,
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/common/libs/utils:contains",
Expand All @@ -22,7 +21,6 @@ cf_cc_library(
cf_cc_test(
name = "key_equals_value_test",
srcs = ["key_equals_value_test.cc"],
clang_format_enabled = True,
deps = [
"//cuttlefish/common/libs/key_equals_value",
"//cuttlefish/result",
Expand Down
1 change: 0 additions & 1 deletion base/cvd/cuttlefish/common/libs/transport/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ cf_cc_library(
"channel.h",
"channel_sharedfd.h",
],
clang_format_enabled = True,
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/result",
Expand Down
14 changes: 14 additions & 0 deletions base/cvd/cuttlefish/common/libs/utils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cf_cc_library(
name = "archive",
srcs = ["archive.cpp"],
hdrs = ["archive.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:subprocess",
"//cuttlefish/common/libs/utils:subprocess_managed_stdio",
Expand All @@ -32,6 +33,7 @@ cf_cc_library(
cf_cc_test(
name = "base64_test",
srcs = ["base64_test.cpp"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:base64",
"//cuttlefish/result:result_matchers",
Expand Down Expand Up @@ -72,6 +74,7 @@ cf_cc_library(
name = "disk_usage",
srcs = ["disk_usage.cpp"],
hdrs = ["disk_usage.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:subprocess",
"//cuttlefish/common/libs/utils:subprocess_managed_stdio",
Expand Down Expand Up @@ -109,6 +112,7 @@ cf_cc_library(
name = "files",
srcs = ["files.cpp"],
hdrs = ["files.h"],
clang_format_enabled = False,
target_compatible_with = [
"@platforms//os:linux", # SEEK_DATA
],
Expand Down Expand Up @@ -176,6 +180,7 @@ cf_cc_library(
name = "host_info",
srcs = ["host_info.cpp"],
hdrs = ["host_info.h"],
clang_format_enabled = False,
deps = [
"//libbase",
"@abseil-cpp//absl/base:no_destructor",
Expand Down Expand Up @@ -227,6 +232,7 @@ cf_cc_library(
name = "network",
srcs = ["network.cpp"],
hdrs = ["network.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:files",
"//cuttlefish/common/libs/utils:subprocess",
Expand Down Expand Up @@ -288,6 +294,7 @@ cf_cc_library(
hdrs = [
"random.h",
],
clang_format_enabled = False,
)

cf_cc_library(
Expand Down Expand Up @@ -315,6 +322,7 @@ cf_cc_library(
name = "signals",
srcs = ["signals.cpp"],
hdrs = ["signals.h"],
clang_format_enabled = False,
deps = [
"//libbase",
"@abseil-cpp//absl/log:check",
Expand All @@ -330,6 +338,7 @@ cf_cc_library(
name = "socket2socket_proxy",
srcs = ["socket2socket_proxy.cpp"],
hdrs = ["socket2socket_proxy.h"],
clang_format_enabled = False,
target_compatible_with = [
"@platforms//os:linux",
],
Expand Down Expand Up @@ -360,6 +369,7 @@ cf_cc_library(
name = "subprocess_managed_stdio",
srcs = ["subprocess_managed_stdio.cc"],
hdrs = ["subprocess_managed_stdio.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/common/libs/utils:subprocess",
Expand All @@ -373,6 +383,7 @@ cf_cc_library(
name = "tee_logging",
srcs = ["tee_logging.cpp"],
hdrs = ["tee_logging.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/common/libs/utils:contains",
Expand Down Expand Up @@ -438,6 +449,7 @@ cf_cc_library(
name = "users",
srcs = ["users.cpp"],
hdrs = ["users.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:contains",
"//cuttlefish/result",
Expand All @@ -450,6 +462,7 @@ cf_cc_library(
name = "vsock_connection",
srcs = ["vsock_connection.cpp"],
hdrs = ["vsock_connection.h"],
clang_format_enabled = False,
clang_tidy_enabled = False, # TODO: b/403278821 - fix warnings and re-enable after migration work
target_compatible_with = [
"@platforms//os:linux",
Expand Down Expand Up @@ -479,6 +492,7 @@ cf_cc_library(
name = "wait_for_unix_socket",
srcs = ["wait_for_unix_socket.cpp"],
hdrs = ["wait_for_unix_socket.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:files",
"//cuttlefish/common/libs/utils:subprocess",
Expand Down
2 changes: 2 additions & 0 deletions base/cvd/cuttlefish/flag_parser/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ cf_cc_library(
"flag.h",
"gflags_compat.h",
],
clang_format_enabled = False,
deps = [
"//cuttlefish/result",
"//libbase",
Expand All @@ -27,6 +28,7 @@ cf_cc_library(
cf_cc_test(
name = "flag_parser_test",
srcs = ["flag_parser_test.cpp"],
clang_format_enabled = False,
# `layering_check` conflicts with the combination of the clang prebuilt and
# the cmake build rules used for @libxml2.
features = ["-layering_check"],
Expand Down
19 changes: 19 additions & 0 deletions base/cvd/cuttlefish/host/commands/assemble_cvd/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cf_cc_library(
name = "alloc",
srcs = ["alloc.cc"],
hdrs = ["alloc.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/host/commands/cvdalloc:interface",
Expand All @@ -23,6 +24,7 @@ cf_cc_library(
cf_cc_binary(
name = "assemble_cvd",
srcs = ["assemble_cvd.cc"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/common/libs/utils:contains",
Expand Down Expand Up @@ -85,6 +87,7 @@ cf_cc_library(
name = "boot_config",
srcs = ["boot_config.cc"],
hdrs = ["boot_config.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:files",
"//cuttlefish/common/libs/utils:size_utils",
Expand All @@ -109,6 +112,7 @@ cf_cc_library(
name = "boot_image_utils",
srcs = ["boot_image_utils.cc"],
hdrs = ["boot_image_utils.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/common/libs/utils:files",
Expand Down Expand Up @@ -145,6 +149,7 @@ cf_cc_library(
name = "bootconfig_args",
srcs = ["bootconfig_args.cpp"],
hdrs = ["bootconfig_args.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:contains",
"//cuttlefish/common/libs/utils:json",
Expand All @@ -162,6 +167,7 @@ cf_cc_library(
name = "clean",
srcs = ["clean.cc"],
hdrs = ["clean.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:files",
"//cuttlefish/common/libs/utils:in_sandbox",
Expand Down Expand Up @@ -250,6 +256,7 @@ cf_cc_library(
name = "disk_image_flags_vectorization",
srcs = ["disk_image_flags_vectorization.cc"],
hdrs = ["disk_image_flags_vectorization.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/host/commands/assemble_cvd:assemble_cvd_flags",
"//cuttlefish/host/commands/assemble_cvd:super_image_mixer",
Expand All @@ -274,6 +281,7 @@ cf_cc_library(
name = "display",
srcs = ["display.cpp"],
hdrs = ["display.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/flag_parser",
"//cuttlefish/host/libs/config:config_flag",
Expand All @@ -290,6 +298,7 @@ cf_cc_library(
name = "flag_feature",
srcs = ["flag_feature.cpp"],
hdrs = ["flag_feature.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/host/libs/config:config_flag",
"//cuttlefish/host/libs/feature",
Expand All @@ -304,6 +313,7 @@ cf_cc_library(
name = "flags",
srcs = ["flags.cc"],
hdrs = ["flags.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:base64",
"//cuttlefish/common/libs/utils:container",
Expand Down Expand Up @@ -388,6 +398,7 @@ cf_cc_library(
name = "guest_config",
srcs = ["guest_config.cc"],
hdrs = ["guest_config.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/key_equals_value",
"//cuttlefish/common/libs/utils:device_type",
Expand Down Expand Up @@ -421,6 +432,7 @@ cf_cc_library(
name = "graphics_flags",
srcs = ["graphics_flags.cc"],
hdrs = ["graphics_flags.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:contains",
"//cuttlefish/common/libs/utils:files",
Expand Down Expand Up @@ -507,6 +519,7 @@ cf_cc_library(
name = "misc_info",
srcs = ["misc_info.cc"],
hdrs = ["misc_info.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/common/libs/utils:contains",
Expand Down Expand Up @@ -548,6 +561,7 @@ cf_cc_library(
name = "resolve_instance_files",
srcs = ["resolve_instance_files.cc"],
hdrs = ["resolve_instance_files.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/host/commands/assemble_cvd:assemble_cvd_flags",
"//cuttlefish/host/commands/assemble_cvd/flags:boot_image",
Expand All @@ -568,6 +582,7 @@ cf_cc_library(
name = "super_image_mixer",
srcs = ["super_image_mixer.cc"],
hdrs = ["super_image_mixer.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/key_equals_value",
"//cuttlefish/common/libs/utils:archive",
Expand All @@ -592,6 +607,7 @@ cf_cc_library(
name = "touchpad",
srcs = ["touchpad.cpp"],
hdrs = ["touchpad.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/flag_parser",
"//cuttlefish/host/libs/config:config_flag",
Expand All @@ -607,6 +623,7 @@ cf_cc_library(
name = "vendor_dlkm_utils",
srcs = ["vendor_dlkm_utils.cc"],
hdrs = ["vendor_dlkm_utils.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/fs",
"//cuttlefish/common/libs/utils:contains",
Expand Down Expand Up @@ -636,6 +653,7 @@ cf_cc_library(
hdrs = [
"assemble_cvd_flags.h",
],
clang_format_enabled = False,
deps = [
"//cuttlefish/common/libs/utils:environment",
"//cuttlefish/host/commands/assemble_cvd:flags_defaults",
Expand All @@ -652,6 +670,7 @@ cf_cc_library(
name = "media",
srcs = ["media.cpp"],
hdrs = ["media.h"],
clang_format_enabled = False,
deps = [
"//cuttlefish/flag_parser",
"//cuttlefish/host/libs/config:config_flag",
Expand Down
Loading
Loading