Skip to content

[filter] declarative paradigm #1901

[filter] declarative paradigm

[filter] declarative paradigm #1901

Workflow file for this run

name: 'ClangTidy'
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * */5'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: 'Install: Clang'
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt upgrade
sudo apt install g++-13
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17 all
- name: 'Configure'
env:
CXX: 'clang++-17'
CC: 'clang-17'
run: |
cmake -S . -B 'build' -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- name: Verify
run: |
cat build/compile_commands.json
FILES=`find . \
-type f -path './build/benchmark/*.cpp' -o \
-type f -path './sample/*.cpp' -o \
-type f -path './source/*.cpp' -o \
-type f -path './test/*.cpp'`
echo $FILES
clang-tidy-17 -p 'build' $FILES