Skip to content

Commit 84c5520

Browse files
committed
Add .editorconfig
1 parent bc94ead commit 84c5520

File tree

13 files changed

+30
-15
lines changed

13 files changed

+30
-15
lines changed

.clang-format

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AlwaysBreakAfterDefinitionReturnType: All
1+
AlwaysBreakAfterDefinitionReturnType: All
22
BreakBeforeBraces: Stroustrup
33
ColumnLimit: 180
44
PointerAlignment: Right
@@ -17,4 +17,4 @@ UseTab: ForContinuationAndIndentation
1717
AlwaysBreakBeforeMultilineStrings: 'true'
1818
BinPackArguments: 'false'
1919
ForEachMacros: ['wl_list_for_each_safe', 'wl_list_for_each']
20-
AlignAfterOpenBracket: AlwaysBreak
20+
AlignAfterOpenBracket: AlwaysBreak

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
9+
[*.{c,h,txt}]
10+
indent_style = tab
11+
indent_size = 4
12+
13+
[*.{xml,yml}]
14+
indent_style = space
15+
indent_size = 2

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
os: linux
2-
arch: ppc64le
1+
os: linux
2+
arch: ppc64le
33
dist: bionic
44
sudo: required
55

@@ -38,4 +38,4 @@ jobs:
3838
- /alpine/enter-chroot ln -sf /usr/bin/lld /usr/bin/ld
3939
env:
4040
# replace gcc with compiler-rt once it is available for ppc64le
41-
- ALPINE_PACKAGES="clang wayland-protocols wayland-dev meson musl-dev lld gcc"
41+
- ALPINE_PACKAGES="clang wayland-protocols wayland-dev meson musl-dev lld gcc"

color.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ wob_color_premultiply_alpha(const struct wob_color color)
2626
};
2727

2828
return premultiplied_color;
29-
}
29+
}

include/buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ int wob_shm_create();
88

99
void *wob_shm_alloc(int shmid, size_t size);
1010

11-
#endif
11+
#endif

include/color.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ uint32_t wob_color_to_argb(struct wob_color color);
1212

1313
struct wob_color wob_color_premultiply_alpha(struct wob_color color);
1414

15-
#endif
15+
#endif

include/parse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ bool wob_parse_color(const char *restrict str, char **restrict str_end, struct w
1010

1111
bool wob_parse_input(const char *input_buffer, unsigned long *percentage, struct wob_color *background, struct wob_color *border, struct wob_color *bar);
1212

13-
#endif
13+
#endif

include/pledge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
bool wob_pledge(void);
77

8-
#endif
8+
#endif

log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ wob_log_inc_verbosity(void)
110110
min_importance_to_log -= 1;
111111
wob_log_debug("Set log level to %s", verbosity_names[min_importance_to_log]);
112112
}
113-
}
113+
}

meson_options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
option('man-page', type: 'feature', value: 'auto', description: 'Generate and install man page')
2-
option('seccomp', type: 'feature', value: 'auto', description: 'Use seccomp on Linux')
2+
option('seccomp', type: 'feature', value: 'auto', description: 'Use seccomp on Linux')

parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ wob_parse_input(const char *input_buffer, unsigned long *percentage, struct wob_
8080
}
8181

8282
return input_ptr == newline_position;
83-
}
83+
}

pledge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ bool
66
wob_pledge(void)
77
{
88
return true;
9-
}
9+
}

pledge_seccomp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ wob_pledge(void)
6060
seccomp_release(scmp_ctx);
6161

6262
return true;
63-
}
63+
}

0 commit comments

Comments
 (0)