Skip to content

Commit 841541b

Browse files
ddunlcopybara-github
authored andcommitted
Use newer version of clang-format and update config
FORCE_TEST_ACTIONS PiperOrigin-RevId: 612513753
1 parent 4e0b3d9 commit 841541b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.clang-format

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ BasedOnStyle: Google
22
Language: Cpp
33
PointerBindsToType: true
44
SortIncludes: Never
5-
AlignTrailingComments: false
5+
AlignTrailingComments:
6+
Kind: Always

.github/workflows/clang_format.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ jobs:
3232
uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v2.5.0
3333
- name: "Fetch HEAD of main branch"
3434
run: git fetch origin main --depth=1
35-
- name: "Run clang-format"
36-
run: clang-format --dry-run --Werror --verbose $(git diff --name-only origin/main HEAD -- '*.cc' '*.h')
35+
- name: "Run clang-format" # Use pipx to get version that apt doesn't have by default
36+
run: pipx run clang-format==17.0.6 --dry-run --Werror --verbose $(git diff --name-only origin/main HEAD -- '*.cc' '*.h')

0 commit comments

Comments
 (0)