diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index f8962988..b347ed9c 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -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 diff --git a/clang_check/CMakeLists.txt b/clang_check/CMakeLists.txt new file mode 100644 index 00000000..4ab005a1 --- /dev/null +++ b/clang_check/CMakeLists.txt @@ -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) \ No newline at end of file diff --git a/clang_check/README.md b/clang_check/README.md new file mode 100644 index 00000000..e69de29b