Skip to content

Commit

Permalink
ci: check clang-tidy on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Riolku committed Nov 28, 2023
1 parent 2f64b63 commit 85e7ae4
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,31 @@ jobs:
- name: Benchmark
run: python3 benchmark/benchmark_runner.py --dataset ldbc-sf100 --thread 10

macos-clang-tidy:
name: macos clang tidy & clangd diagnostics check
needs: [clang-formatting-check, include-guard-and-no-std-assert]
runs-on: self-hosted-mac-x64
env:
NUM_THREADS: 32
GEN: ninja

steps:
- uses: actions/checkout@v3

# For `napi.h` header.
- name: Ensure Node.js dependencies
run: npm install --include=dev
working-directory: tools/nodejs_api

- name: Check for clangd diagnostics
run: make clangd-diagnostics

- name: Run clang-tidy
run: make tidy

- name: Run clang-tidy analyzer
run: make tidy-analyzer

macos-build-test:
name: apple clang build & test
needs: [clang-formatting-check, include-guard-and-no-std-assert, rustfmt-check]
Expand Down
2 changes: 1 addition & 1 deletion scripts/get-clangd-diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import argparse
import io
import json
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-clang-format.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
"""A wrapper script around clang-format, suitable for linting multiple files
and to use for continuous integration.
Expand Down
1 change: 1 addition & 0 deletions src/include/processor/operator/aggregate/hash_aggregate.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
namespace kuzu {
namespace processor {

// NOLINTNEXTLINE(cppcoreguidelines-virtual-class-destructor): This is a final class.
class HashAggregateSharedState final : public BaseAggregateSharedState {

public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
namespace kuzu {
namespace processor {

// NOLINTNEXTLINE(cppcoreguidelines-virtual-class-destructor): This is a final class.
class SimpleAggregateSharedState final : public BaseAggregateSharedState {
public:
explicit SimpleAggregateSharedState(
Expand Down

0 comments on commit 85e7ae4

Please sign in to comment.