We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aee4300 commit f7aa2dcCopy full SHA for f7aa2dc
.github/workflows/clang-format.yml
@@ -1,6 +1,7 @@
1
name: Clang Format Check
2
3
on: [push, pull_request]
4
+
5
jobs:
6
ubuntu64:
7
runs-on: ubuntu-latest
@@ -12,7 +13,7 @@ jobs:
12
13
14
- name: Install clang format
15
run: |
- sudo apt-get install -y clang-format-10
16
+ sudo apt-get install -y clang-format-12
17
18
- name: Check the Formatting
19
formatcode.sh
@@ -19,7 +19,11 @@ if [[ $OS = "Linux" || $OS = "Darwin" ]] ; then
fi
20
21
# Discover clang-format
22
-if type clang-format-8 2> /dev/null ; then
+if type clang-format-12 2> /dev/null ; then
23
+ CLANG_FORMAT=clang-format-12
24
+elif type clang-format-10 2> /dev/null ; then
25
+ CLANG_FORMAT=clang-format-10
26
+elif type clang-format-8 2> /dev/null ; then
27
CLANG_FORMAT=clang-format-8
28
else
29
CLANG_FORMAT=clang-format
0 commit comments