Skip to content

Commit e902b7f

Browse files
Switch to clang-format-14 (#577)
* Switch to clang-format-14 * Update CI format job Co-authored-by: Tyler Weaver <[email protected]>
1 parent 502f5e6 commit e902b7f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/format.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ on:
1010
branches:
1111
- main
1212

13+
permissions:
14+
contents: read # to fetch code (actions/checkout)
15+
1316
jobs:
1417
pre-commit:
1518
name: Format
16-
runs-on: ubuntu-22.04
19+
runs-on: ubuntu-latest
1720
steps:
1821
- uses: actions/checkout@v3
1922
- uses: actions/setup-python@v4
2023
with:
2124
python-version: '3.10'
22-
- name: Install clang-format-12
23-
run: sudo apt-get install clang-format-12
25+
- name: Install clang-format-14
26+
run: sudo apt-get install clang-format-14
2427
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repos:
3737
- id: clang-format
3838
name: clang-format
3939
description: Format files with ClangFormat.
40-
entry: clang-format-12
40+
entry: clang-format-14
4141
language: system
4242
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
4343
args: ['-fallback-style=none', '-i']

0 commit comments

Comments
 (0)