diff options
author | Anna Weine <anna.weine@mozilla.com> | 2022-10-07 11:25:24 +0000 |
---|---|---|
committer | Anna Weine <anna.weine@mozilla.com> | 2022-10-07 11:25:24 +0000 |
commit | 811625e10804cb6a36b5e643b9bb9c1fcb0a8398 (patch) | |
tree | 7c8d5fad269f9436132b6880b69abd467b926069 /automation/clang-format | |
parent | c14535f9c17c47e1ca55af69c0214289af57a684 (diff) | |
download | nss-hg-811625e10804cb6a36b5e643b9bb9c1fcb0a8398.tar.gz |
Bug 1792821 - Updating the clang-format version to 10. r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D158323
Diffstat (limited to 'automation/clang-format')
-rw-r--r-- | automation/clang-format/Dockerfile | 4 | ||||
-rwxr-xr-x | automation/clang-format/run_clang_format.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/automation/clang-format/Dockerfile b/automation/clang-format/Dockerfile index 34fc0fb43..9f4f12a63 100644 --- a/automation/clang-format/Dockerfile +++ b/automation/clang-format/Dockerfile @@ -5,7 +5,7 @@ LABEL maintainer="Martin Thomson <martin.thomson@gmail.com>" RUN apt-get update \ && apt-get install -y --no-install-recommends \ ca-certificates \ - clang-format-3.9 \ + clang-format-10 \ locales \ python-dev \ python-pip \ @@ -19,7 +19,7 @@ RUN pip install mercurial==6.1.1 RUN update-alternatives --install /usr/bin/clang-format \ - clang-format $(which clang-format-3.9) 10 + clang-format $(which clang-format-10) 10 ENV SHELL /bin/bash ENV USER worker diff --git a/automation/clang-format/run_clang_format.sh b/automation/clang-format/run_clang_format.sh index 378b00ff0..50d4eead7 100755 --- a/automation/clang-format/run_clang_format.sh +++ b/automation/clang-format/run_clang_format.sh @@ -54,7 +54,7 @@ for dir in "${dirs[@]}"; do if [ "${#c}" == "1" ]; then depth+=(-maxdepth 1) fi - find "$dir" "${depth[@]}" -type f \( -name '*.[ch]' -o -name '*.cc' \) -exec clang-format -i {} \+ + find "$dir" "${depth[@]}" -type f \( -name '*.[ch]' -o -name '*.cc' \) -exec clang-format -sort-includes=false -i {} \+ fi done @@ -65,4 +65,4 @@ if [[ -d "$top/.hg" ]]; then else git -C "$top" diff | tee $TMPFILE fi -[[ ! -s $TMPFILE ]] +[[ ! -s $TMPFILE ]]
\ No newline at end of file |