Skip to content

Commit af69046

Browse files
authored
chore: llvm 22 (#1010)
1 parent 05b2a25 commit af69046

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919

2020
- name: Install cpplint
2121
shell: bash
22-
run: pip install 'cpplint==2.0.0'
22+
run: pip install 'cpplint==2.0.2'
2323

2424
- name: Install ktlint
2525
shell: bash
@@ -28,6 +28,17 @@ runs:
2828
chmod a+x ktlint
2929
sudo mv ktlint /usr/local/bin/
3030
31+
# .clang-format uses options added in clang-format 22 (BreakAfterOpenBracket*).
32+
# ubuntu-latest still defaults to an older binary; install 22
33+
- name: Install clang-format 22
34+
shell: bash
35+
run: |
36+
set -euo pipefail
37+
curl -fsSL https://apt.llvm.org/llvm.sh | sudo bash -s -- 22
38+
sudo apt-get install -y clang-format-22
39+
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-22 200
40+
clang-format --version
41+
3142
- name: Cache dependencies
3243
id: yarn-cache
3344
uses: actions/cache@v4

packages/react-native-audio-api/.clang-format

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
ColumnLimit: 100
33
AccessModifierOffset: -1
4-
AlignAfterOpenBracket: AlwaysBreak
4+
AlignAfterOpenBracket: false
55
AlignConsecutiveAssignments: false
66
AlignConsecutiveDeclarations: false
77
AlignEscapedNewlines: DontAlign
@@ -70,10 +70,14 @@ SpacesInSquareBrackets: false
7070
UseTab: Never
7171
---
7272
Language: Cpp
73+
BreakAfterOpenBracketBracedList: true
74+
BreakAfterOpenBracketFunction: true
7375
Standard: c++20
7476
---
7577
Language: ObjC
7678
BreakBeforeBraces: WebKit
7779
ObjCBlockIndentWidth: 2
7880
ObjCSpaceAfterProperty: true
7981
ObjCSpaceBeforeProtocolList: true
82+
BreakAfterOpenBracketBracedList: true
83+
BreakAfterOpenBracketFunction: true

0 commit comments

Comments
 (0)