Skip to content

Commit

Permalink
try 1
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Aug 7, 2024
1 parent 6845215 commit d82a648
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
CheckOptions: []
Checks: 'abseil-*,boost-*,bugprone-*,cert-*,clang-analyzer-*,concurrency-*,cppcoreguidelines-*,darwin-*,fuchsia-*,google-*,hicpp-*,linuxkernel-*,llvm-*,llvmlibc-*,misc-*,modernize-*,performance-*,portability-*,readability-*'
ExtraArgs:
- -std=c++17
ExtraArgsBefore: []
FormatStyle: none
HeaderFilterRegex: ''
Expand Down
16 changes: 2 additions & 14 deletions .github/workflows/lint_and_test_cpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,8 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: cpp-linter/cpp-linter-action@v2
id: linter
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: '' # Disabled. Use .clang-format config file if specify 'file'.
tidy-checks: '' # Use .clang-tidy config file
files-changed-only: false
thread-comments: false
extra-args: '-std=c++17 -Wall'
- name: Fail fast?!
if: steps.linter.outputs.clang-tidy-checks-failed > 0
run: exit 1
- name: clang-tidy
run: ./build-support/clang_tidy.py --rev-range ${{ env.GITHUB_SHA }}

iwyu:
name: IWYU
Expand Down
1 change: 1 addition & 0 deletions build-support/clang_tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,4 @@ def split_warnings(clang_output):
clang_output = run_tidy(args.rev, args.rev_range)
print("Clang output")
print(clang_output)
sys.exit(None == re.match("warning: |error: ", clang_output, flags=0))

0 comments on commit d82a648

Please sign in to comment.