Skip to content

Commit

Permalink
generate compile_commandsf
Browse files Browse the repository at this point in the history
  • Loading branch information
justinchuby committed Sep 21, 2022
1 parent 9467b79 commit 416076e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Checks: >
readability-*,
modernize-*,
bugprone-*,
performance-*,
misc-*,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-pro-type-reinterpret-cast,
-google-readability-todo,
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,23 @@ jobs:
level: warning
flags: --linelength=120 --exclude=java/src/main/native/*.c
filter: "-runtime/references"
- name: Install ninja
run: python -m pip install --upgrade ninja
- name: Generate compile_commands.json
run: |
python tools/ci_build/build.py \
--cmake_generator "Ninja" \
--build_dir build \
--update \
--cmake_extra_defines CMAKE_EXPORT_COMPILE_COMMANDS=ON
- name: Run clang-tidy
uses: ZedThree/[email protected]
with:
token: ${{ secrets.github_token }}
build_dir: "build/Debug/compile_commands.json"
config_file: ".clang-tidy"
lgtm_comment_body: ""


lint-js:
name: Lint JavaScript
runs-on: ubuntu-latest
Expand Down

0 comments on commit 416076e

Please sign in to comment.