[libcxx-commits] [PATCH] D139341: [libc++][CI] Upgrades clang-format version used.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 6 08:33:02 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc5dbc28de227: [libc++][CI] Upgrades clang-format version used. (authored by Mordante).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139341/new/
https://reviews.llvm.org/D139341
Files:
libcxx/utils/ci/buildkite-pipeline.yml
libcxx/utils/ci/run-buildbot
Index: libcxx/utils/ci/run-buildbot
===================================================================
--- libcxx/utils/ci/run-buildbot
+++ libcxx/utils/ci/run-buildbot
@@ -156,8 +156,11 @@
echo "+++ Checking formatting"
# We need to set --extensions so that clang-format checks extensionless files.
mkdir -p ${BUILD_DIR}
- git-clang-format \
- --binary /usr/bin/clang-format --diff \
+ if [ -z "${GIT_CLANG_FORMAT}" ]; then
+ GIT_CLANG_FORMAT=git-clang-format
+ fi
+ ${GIT_CLANG_FORMAT} \
+ --diff \
--extensions ',h,hh,hpp,hxx,c,cc,cxx,cpp' HEAD~1 \
-- \
libcxx/{benchmarks,include,src,test} \
Index: libcxx/utils/ci/buildkite-pipeline.yml
===================================================================
--- libcxx/utils/ci/buildkite-pipeline.yml
+++ libcxx/utils/ci/buildkite-pipeline.yml
@@ -23,6 +23,7 @@
# Theses numbers are available in all runners, making it easier to update the
# version number.
env:
+ LLVM_STABLE_VERSION: "15"
LLVM_HEAD_VERSION: "16"
GCC_STABLE_VERSION: "12"
steps:
@@ -34,6 +35,8 @@
command: "libcxx/utils/ci/run-buildbot check-format"
artifact_paths:
- "**/clang-format.patch"
+ env:
+ GIT_CLANG_FORMAT: "/usr/bin/git-clang-format-${LLVM_STABLE_VERSION}"
agents:
queue: "libcxx-builders"
os: "linux"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139341.480504.patch
Type: text/x-patch
Size: 1377 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20221206/8bb044d8/attachment.bin>
More information about the libcxx-commits
mailing list