From: Johan Malm Date: Sat, 31 Oct 2020 15:33:46 +0000 (+0000) Subject: Remove clang-format on/off comments X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=2f44e954aa564acb7f5a3a48fc01058ada7f1db5;p=proto%2Flabwc.git Remove clang-format on/off comments --- diff --git a/src/common/dir.c b/src/common/dir.c index f5560587..c3a7f09e 100644 --- a/src/common/dir.c +++ b/src/common/dir.c @@ -18,7 +18,6 @@ struct dir { const char *path; }; -/* clang-format off */ static struct dir config_dirs[] = { { "XDG_CONFIG_HOME", "labwc" }, { "HOME", ".config/labwc" }, @@ -37,7 +36,6 @@ static struct dir theme_dirs[] = { { NULL, "opt/share/themes" }, { NULL, NULL } }; -/* clang-format on */ static bool isdir(const char *path) diff --git a/src/output.c b/src/output.c index c1e6c03e..a2f94107 100644 --- a/src/output.c +++ b/src/output.c @@ -29,15 +29,15 @@ draw_line(struct draw_data *d, int x1, int y1, int x2, int y2) wlr_render_rect(d->renderer, &box, d->rgba, d->transform_matrix); } -/* clang-format off */ static void draw_rect_unfilled(struct draw_data *d, struct wlr_box box) { draw_line(d, box.x, box.y, box.x + box.width - 1, box.y); - draw_line(d, box.x + box.width - 1, box.y, box.x + box.width - 1, box.y + box.height - 1); - draw_line(d, box.x, box.y + box.height - 1, box.x + box.width - 1, box.y + box.height - 1); + draw_line(d, box.x + box.width - 1, box.y, box.x + box.width - 1, + box.y + box.height - 1); + draw_line(d, box.x, box.y + box.height - 1, box.x + box.width - 1, + box.y + box.height - 1); draw_line(d, box.x, box.y, box.x, box.y + box.height - 1); } -/* clang-format on */ static void shrink(struct wlr_box *box, int size) diff --git a/src/theme/theme-builtin.c b/src/theme/theme-builtin.c index e99f78f2..e1f93e67 100644 --- a/src/theme/theme-builtin.c +++ b/src/theme/theme-builtin.c @@ -11,7 +11,6 @@ #include "theme/theme.h" -/* clang-format off */ void theme_builtin(void) { parse_hexstr("#589bda", theme.window_active_title_bg_color); @@ -20,4 +19,3 @@ void theme_builtin(void) parse_hexstr("#ffffff", theme.window_active_button_unpressed_image_color); parse_hexstr("#000000", theme.window_inactive_button_unpressed_image_color); } -/* clang-format on */ diff --git a/src/theme/theme.c b/src/theme/theme.c index 24663a53..ecbb22a4 100644 --- a/src/theme/theme.c +++ b/src/theme/theme.c @@ -48,7 +48,6 @@ match(const gchar *pattern, const gchar *string) return (bool)g_pattern_match_simple(pattern, string); } -/* clang-format off */ static void entry(const char *key, const char *value) { if (!key || !value) { @@ -66,7 +65,6 @@ static void entry(const char *key, const char *value) parse_hexstr(value, theme.window_inactive_button_unpressed_image_color); } } -/* clang-format on */ static void parse_config_line(char *line, char **key, char **value)