Skip to content

[ci] Add a workflow to check pull request changes with Clang-tidy #18392

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/clang-tidy-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: clang-tidy-review

# You can be more specific, but it currently only works on pull requests
on:
pull_request:
branches:
- '**'
paths-ignore:
- 'doc/**'
- 'documentation/**'
- 'interpreter/llvm-project/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

# Optionally generate compile_commands.json

- uses: ZedThree/[email protected]
id: review

# Uploads an artefact containing clang_fixes.json
- uses: ZedThree/clang-tidy-review/[email protected]
id: upload-review

# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1
2 changes: 1 addition & 1 deletion core/zip/src/RZip.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ static void R__zipZLIB(int cxlevel, int *srcsize, char *src, int *tgtsize, char
stream.next_out = (Bytef*)(&tgt[HDRSIZE]);
stream.avail_out = (uInt)(*tgtsize) - HDRSIZE;

stream.zalloc = nullptr;
stream.zalloc = (alloc_func) 0;
stream.zfree = nullptr;
stream.opaque = nullptr;

Expand Down
Loading