Skip to content

Commit

Permalink
Update clang
Browse files Browse the repository at this point in the history
Ubuntu 20.04 use clang  10 and 11.

ubuntu 20.04 will cease development on April 25.
ros 2 releases require a c++17 standard.
Clang 11 release introduces the following features:
The default C language standard used when -std= is not specified has been upgraded from gnu11 to gnu17.
For this reason is important switch to clang11 or higher.

other changes: https://releases.llvm.org/11.1.0/tools/clang/docs/index.html
  • Loading branch information
mosfet80 committed Nov 6, 2024
1 parent 8703caf commit bf0f2ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v5
- name: Install clang-format-10
run: sudo apt-get install clang-format-10
- name: Install clang-format-11
run: sudo apt-get install clang-format-11
- 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 @@ -43,7 +43,7 @@ repos:
- id: clang-format
name: clang-format
description: Format files with ClangFormat.
entry: clang-format-10
entry: clang-format-11
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']

0 comments on commit bf0f2ec

Please sign in to comment.