Skip to content

Commit e2afa7c

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

6 files changed

Lines changed: 10 additions & 18 deletions

File tree

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ package(
66

77
cf_cc_library(
88
name = "screen_connector_common",
9-
srcs = [
10-
"screen_connector_common.cc",
11-
],
12-
hdrs = [
13-
"screen_connector_common.h",
14-
],
9+
srcs = ["screen_connector_common.cc"],
10+
hdrs = ["screen_connector_common.h"],
1511
deps = [
1612
"//cuttlefish/common/libs/utils:size_utils",
1713
"//cuttlefish/host/libs/config:cuttlefish_config",
@@ -22,9 +18,7 @@ cf_cc_library(
2218

2319
cf_cc_library(
2420
name = "video_frame_buffer",
25-
hdrs = [
26-
"video_frame_buffer.h",
27-
],
21+
hdrs = ["video_frame_buffer.h"],
2822
)
2923

3024
cf_cc_library(
@@ -44,7 +38,6 @@ cf_cc_library(
4438
"screen_connector_queue.h",
4539
"wayland_screen_connector.h",
4640
],
47-
clang_format_enabled = False,
4841
deps = [
4942
":screen_connector_common",
5043
":video_frame_buffer",

base/cvd/cuttlefish/host/libs/screen_connector/composition_manager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* Currently the Composition algorithm implemented in
2121
* this module has a known limitation. It uses IPC buffers in such a way where
2222
* it is currently possible for frames to be simultaneously
23-
* read and written from the same memory lcoation. It's therefore possible to
23+
* read and written from the same memory location. It's therefore possible to
2424
* have some display artifacts as partial frames are read. To remedy there is
2525
* follow-up work (documented in b/384939093) planned.
2626
*/
@@ -34,13 +34,13 @@
3434
#include <string_view>
3535
#include <vector>
3636

37-
#include "absl/strings/ascii.h"
38-
#include "absl/strings/str_split.h"
3937
#include "absl/log/log.h"
38+
#include "absl/strings/ascii.h"
4039
#include "absl/strings/numbers.h"
40+
#include "absl/strings/str_split.h"
41+
#include "drm/drm_fourcc.h"
4142
#include "libyuv.h"
4243

43-
#include <drm/drm_fourcc.h>
4444
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
4545
#include "cuttlefish/host/libs/screen_connector/ring_buffer_manager.h"
4646
#include "cuttlefish/host/libs/wayland/wayland_server_callbacks.h"

base/cvd/cuttlefish/host/libs/screen_connector/ring_buffer_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <optional>
2626
#include <string>
2727

28-
#include <fmt/format.h>
28+
#include "fmt/format.h"
2929

3030
#include "cuttlefish/common/libs/fs/shared_fd.h"
3131

base/cvd/cuttlefish/host/libs/screen_connector/screen_connector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#include <type_traits>
2626
#include <unordered_set>
2727

28-
#include <fruit/fruit.h>
2928
#include "absl/log/log.h"
29+
#include "fruit/fruit.h"
3030

3131
#include "cuttlefish/common/libs/utils/contains.h"
3232
#include "cuttlefish/common/libs/utils/size_utils.h"

base/cvd/cuttlefish/host/libs/screen_connector/screen_connector_multiplexer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <stdint.h>
2020

2121
#include "cuttlefish/common/libs/concurrency/multiplexer.h"
22-
2322
#include "cuttlefish/host/libs/confui/host_mode_ctrl.h"
2423
#include "cuttlefish/host/libs/screen_connector/screen_connector_queue.h"
2524

base/cvd/cuttlefish/host/libs/screen_connector/wayland_screen_connector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include <memory>
2020

21-
#include <fruit/fruit.h>
21+
#include "fruit/fruit.h"
2222

2323
#include "cuttlefish/host/libs/screen_connector/screen_connector_common.h"
2424
#include "cuttlefish/host/libs/wayland/wayland_server.h"

0 commit comments

Comments
 (0)