Skip to content

cmake|Plugin|Expected|test: Fix C++17 compilation issues #9

cmake|Plugin|Expected|test: Fix C++17 compilation issues

cmake|Plugin|Expected|test: Fix C++17 compilation issues #9

Workflow file for this run

name: "C++ Lint"
on: [push, pull_request]
jobs:
lint:
name: "clang-tidy"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get -y --no-install-recommends install \
cmake='3.22.*' \
clang-tidy='1:14.*' \
libboost-program-options-dev='1.74.*' \
libfmt-dev='8.*'
- name: Generate compile_commands.json
run: |
mkdir -pv build
cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
# Check all source and header C++ files;
# ignore files in the build directory or in hidden directories
- name: Execute clang-tidy
run: find . \( \( -path './build' -o -path '*/.*' \) -prune \) -o
\( -type f -a \( -iname '*.cpp' -o -iname '*.h' \) \)
-exec echo "Linting '{}'..." \;
-exec clang-tidy -p build --warnings-as-errors='*' {} +