File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- # Buildbot will have done a shallow clone, but the formatting step requires
6
- # both full git history, and a complete set of upstream llvm release tags.
7
- git fetch --unshallow
8
- git fetch --tags https://github.com/llvm/llvm-project
9
-
10
5
INST_DIR=` pwd` /inst
11
6
12
7
mkdir -p build
@@ -22,6 +17,7 @@ make -j `nproc` install
22
17
# clang-format any new files that we've introduced ourselves.
23
18
cd ..
24
19
PATH=${INST_DIR} /bin:${PATH}
20
+ git fetch origin main:refs/remotes/origin/main
25
21
sh yk_format_new_files.sh
26
22
git diff --exit-code
27
23
Original file line number Diff line number Diff line change 4
4
5
5
set -e
6
6
7
- # The LLVM version tag we are forked from.
8
- FORKED_LLVM_VERSION=` git describe --abbrev=0 --match ' llvmorg-*' `
9
-
10
- git diff --name-only --diff-filter=A ${FORKED_LLVM_VERSION} \
11
- ` git branch --show-current` | egrep ' \.(cpp|h)$' | xargs clang-format -i
7
+ clang/tools/clang-format/git-clang-format origin/main
You can’t perform that action at this time.
0 commit comments