Skip to content

Commit

Permalink
Switch to clang-format-14 (#577)
Browse files Browse the repository at this point in the history
* Switch to clang-format-14
* Update CI format job

Co-authored-by: Tyler Weaver <[email protected]>
  • Loading branch information
henningkayser and tylerjw authored Jan 21, 2023
1 parent 502f5e6 commit e902b7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@ on:
branches:
- main

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
pre-commit:
name: Format
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install clang-format-12
run: sudo apt-get install clang-format-12
- name: Install clang-format-14
run: sudo apt-get install clang-format-14
- uses: pre-commit/[email protected]
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
- id: clang-format
name: clang-format
description: Format files with ClangFormat.
entry: clang-format-12
entry: clang-format-14
language: system
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
args: ['-fallback-style=none', '-i']
Expand Down

0 comments on commit e902b7f

Please sign in to comment.