name: Static code check

on:
  pull_request:

jobs:
  cppcheck:
    name: cppcheck
    runs-on: "ubuntu-20.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}
      - name: Run cppcheck
        run: cppcheck -q -j$(( $(nproc) * 4 )) --error-exitcode=1 .

name: Static code check

on:
  pull_request:

jobs:
  cppcheck:
    name: cppcheck
    runs-on: "ubuntu-20.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}
      - name: Run cppcheck
        run: cppcheck -q -j$(( $(nproc) * 4 )) --error-exitcode=1 --std=c++14 --inline-suppr .

Enable inline suppressions for cppcheck
[CI] Enable inline suppressions for cppcheck

With this flags, it's possible to suppress false positives directly in the source code, e.g.:
```
// cppcheck-suppress syntaxError
TEST(InputUtilsTests, PlaceholderPass) {
```

Required for https://github.com/GPUOpen-Drivers/llpc/pull/1372.
