#!/bin/bash

set -e

SCRIPTSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPTSDIR/..

mkdir -p build
cd build
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON &> /dev/null
cd ..


clang-tidy -p build -checks='*' $(find libchigraph chi chigraphgui -name "*.cpp")

