Skip to content

Commit

Permalink
create compile commands.json for clang tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlion committed Jun 3, 2024
1 parent 4a2e614 commit f4d6033
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "lint"
name: "Lint"
on:
push:
pull_request:
Expand Down Expand Up @@ -48,8 +48,13 @@ jobs:
- name: "Linux: install clang/llvm"
if: "${{ matrix.os == 'ubuntu-latest' }}"
run: |
curl --proto "=https" --tlsv1.2 -sSf https://apt.llvm.org/llvm.sh |
sudo bash -s -- 16 all
curl --proto "=https" --tlsv1.2 -sSf https://apt.llvm.org/llvm.sh |
sudo bash -s -- 16 all
- name: "Build for compile commands.json"
run: |
cmake -S cpp/ -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1
ln -s build/compile_commands.json .
- name: "Clang format"
run: |
Expand Down

0 comments on commit f4d6033

Please sign in to comment.