This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Promotion from AMD internal branch for 2025.Q1.2 #5616
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Static code check | |
| on: | |
| pull_request: | |
| jobs: | |
| cppcheck: | |
| name: cppcheck | |
| runs-on: "ubuntu-24.04" | |
| steps: | |
| - name: Setup environment | |
| run: | | |
| sudo apt-get install -yqq cppcheck | |
| - name: Checkout LLPC | |
| run: | | |
| git clone https://github.com/${GITHUB_REPOSITORY}.git . | |
| git fetch origin +${GITHUB_SHA}:${GITHUB_REF} --update-head-ok | |
| git checkout ${GITHUB_SHA} | |
| git submodule update --init | |
| - name: Run cppcheck | |
| run: | | |
| cppcheck -q -j$(( $(nproc) * 4 )) --error-exitcode=1 --std=c++20 --inline-suppr . \ | |
| -I imported/llvm-dialects/include -i imported -i llpc/unittests -i llvmraytracing |