switch to clang-format-6.0 (#3533)
Michael Stapelberg authored 5 years ago
GitHub committed 5 years ago
891 | 891 |
XCB_CURRENT_TIME,
|
892 | 892 |
XCB_GRAB_MODE_ASYNC, /* continue processing pointer events as normal */
|
893 | 893 |
XCB_GRAB_MODE_ASYNC /* keyboard mode */
|
894 | |
);
|
|
894 |
);
|
895 | 895 |
|
896 | 896 |
if ((keyb_reply = xcb_grab_keyboard_reply(conn, keyb_cookie, &error)) == NULL) {
|
897 | 897 |
ELOG("Could not grab keyboard (error_code = %d)\n", error->error_code);
|
2 | 2 |
set -e
|
3 | 3 |
set -x
|
4 | 4 |
|
5 | |
clang-format-4.0 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
|
|
5 |
clang-format-6.0 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
|
12 | 12 |
# (3608 kB/s)). Hence, let’s stick with httpredir.debian.org (default) for now.
|
13 | 13 |
|
14 | 14 |
# Install mk-build-deps (for installing the i3 build dependencies),
|
15 | |
# clang and clang-format-4.0 (for checking formatting and building with clang),
|
|
15 |
# clang and clang-format-6.0 (for checking formatting and building with clang),
|
16 | 16 |
# lintian (for checking spelling errors),
|
17 | 17 |
RUN linux32 apt-get update && \
|
18 | 18 |
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
19 | 19 |
dpkg-dev devscripts git equivs \
|
20 | |
clang clang-format-4.0 \
|
|
20 |
clang clang-format-6.0 \
|
21 | 21 |
lintian && \
|
22 | 22 |
rm -rf /var/lib/apt/lists/*
|
23 | 23 |
|
12 | 12 |
# (3608 kB/s)). Hence, let’s stick with httpredir.debian.org (default) for now.
|
13 | 13 |
|
14 | 14 |
# Install mk-build-deps (for installing the i3 build dependencies),
|
15 | |
# clang and clang-format-4.0 (for checking formatting and building with clang),
|
|
15 |
# clang and clang-format-6.0 (for checking formatting and building with clang),
|
16 | 16 |
# lintian (for checking spelling errors),
|
17 | 17 |
RUN linux32 apt-get update && \
|
18 | 18 |
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
19 | 19 |
dpkg-dev devscripts git equivs \
|
20 | |
clang clang-format-4.0 \
|
|
20 |
clang clang-format-6.0 \
|
21 | 21 |
lintian && \
|
22 | 22 |
rm -rf /var/lib/apt/lists/*
|
23 | 23 |
|
12 | 12 |
# (3608 kB/s)). Hence, let’s stick with httpredir.debian.org (default) for now.
|
13 | 13 |
|
14 | 14 |
# Install mk-build-deps (for installing the i3 build dependencies),
|
15 | |
# clang and clang-format-4.0 (for checking formatting and building with clang),
|
|
15 |
# clang and clang-format-6.0 (for checking formatting and building with clang),
|
16 | 16 |
# lintian (for checking spelling errors),
|
17 | 17 |
# test suite dependencies (for running tests)
|
18 | 18 |
RUN apt-get update && \
|
19 | 19 |
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
20 | 20 |
dpkg-dev devscripts git equivs \
|
21 | |
clang clang-format-4.0 \
|
|
21 |
clang clang-format-6.0 \
|
22 | 22 |
lintian && \
|
23 | 23 |
rm -rf /var/lib/apt/lists/*
|
24 | 24 |
|
10 | 10 |
# (3608 kB/s)). Hence, let’s stick with httpredir.debian.org (default) for now.
|
11 | 11 |
|
12 | 12 |
# Install mk-build-deps (for installing the i3 build dependencies),
|
13 | |
# clang and clang-format-4.0 (for checking formatting and building with clang),
|
|
13 |
# clang and clang-format-6.0 (for checking formatting and building with clang),
|
14 | 14 |
# lintian (for checking spelling errors),
|
15 | 15 |
# test suite dependencies (for running tests)
|
16 | 16 |
RUN apt-get update && \
|
17 | 17 |
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
18 | 18 |
dpkg-dev devscripts git equivs \
|
19 | |
clang clang-format-4.0 \
|
|
19 |
clang clang-format-6.0 \
|
20 | 20 |
lintian \
|
21 | 21 |
libmodule-install-perl libanyevent-perl libextutils-pkgconfig-perl xcb-proto cpanminus xvfb xserver-xephyr xauth libinline-perl libinline-c-perl libxml-simple-perl libmouse-perl libmousex-nativetraits-perl libextutils-depends-perl perl libtest-deep-perl libtest-exception-perl libxml-parser-perl libtest-simple-perl libtest-fatal-perl libdata-dump-perl libtest-differences-perl libxml-tokeparser-perl libipc-run-perl libxcb-xtest0-dev libx11-xcb-perl libjson-xs-perl x11-xserver-utils && \
|
22 | 22 |
rm -rf /var/lib/apt/lists/*
|