Skip to content

Commit

Permalink
reconfigure: add clang_check dir
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-marcisovsky committed Mar 25, 2024
1 parent c9fc3df commit 288eee4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ jobs:
env:
IDF_TOOLCHAIN: clang
IDF_TARGET: esp32s3
working-directory: device/esp_tinyusb/test_app
working-directory: clang_check
run: |
. ${IDF_PATH}/export.sh
idf.py reconfigure
idf.py clang-check --include-paths $GITHUB_WORKSPACE --exclude-paths $PWD --run-clang-tidy-py run-clang-tidy
cp warnings.txt ../
- name: Convert clang-tidy results into SARIF output
Expand Down
9 changes: 9 additions & 0 deletions clang_check/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/version.cmake)

set(EXTRA_COMPONENT_DIRS ../host/class/cdc/usb_host_cdc_acm ../host/class/hid/usb_host_hid ../host/class/msc/usb_host_msc ../host/class/uvc/usb_host_uvc)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(clang_check)
Empty file added clang_check/README.md
Empty file.

0 comments on commit 288eee4

Please sign in to comment.