We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 041ec7c commit 0d8303eCopy full SHA for 0d8303e
1 file changed
tools/reformat-source.sh
@@ -1,6 +1,7 @@
1
#!/bin/bash
2
3
-VERSION=`clang-format --version | grep -o '[^ ]*$' | cut -d '.' -f 1`
+VERSION=`clang-format --version | grep -Po '(?<=\s)\d+(?=\.\d+\.\d+\s)'`
4
+
5
if [ "$VERSION" -ge "14" ]; then
6
CLANG_FORMAT=clang-format
7
elif clang-format-14 --version > /dev/null; then
0 commit comments