Skip to content

Commit b581db7

Browse files
committed
yk_format_new_files.sh: Automatically determine the LLVM version.
1 parent 41d1a16 commit b581db7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yk_format_new_files.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Format any new files that we have added in our fork.
44

55
# The LLVM version tag we are forked from.
6-
FORKED_LLVM_VERSION=llvmorg-13.0.0
6+
FORKED_LLVM_VERSION=`git describe --abbrev=0 --match 'llvmorg-*'`
77

88
git diff --name-only --diff-filter=A ${FORKED_LLVM_VERSION} \
99
`git branch --show-current` | egrep '\.(cpp|h)$' | xargs clang-format -i

0 commit comments

Comments
 (0)