[libcxx-commits] [PATCH] D153416: [libc++] Fix the check-format job
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 21 06:10:53 PDT 2023
ldionne created this revision.
ldionne added a reviewer: philnik.
Herald added a subscriber: arichardson.
Herald added a project: All.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
Previously, it wouldn't take into account files in ignore_format.txt
(at least not on OSX) because the `find` command would return file names
like `libcxx/src//new_handler.cpp`, which never matched the file names
in `ignore_format.txt`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D153416
Files:
libcxx/utils/ci/run-buildbot
Index: libcxx/utils/ci/run-buildbot
===================================================================
--- libcxx/utils/ci/run-buildbot
+++ libcxx/utils/ci/run-buildbot
@@ -198,7 +198,7 @@
${GIT_CLANG_FORMAT} \
--diff \
--extensions ',h,hpp,c,cpp,cppm,inc,ipp' HEAD~1 \
- -- $(find libcxx/{benchmarks,include,modules,src}/ -type f | grep -vf libcxx/utils/data/ignore_format.txt) \
+ -- $(find libcxx/{benchmarks,include,modules,src} -type f | grep -vf libcxx/utils/data/ignore_format.txt) \
| tee ${BUILD_DIR}/clang-format.patch
# Check if the diff is empty, fail otherwise.
! grep -q '^--- a' ${BUILD_DIR}/clang-format.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153416.533233.patch
Type: text/x-patch
Size: 683 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230621/6b8036c6/attachment.bin>
More information about the libcxx-commits
mailing list