1#!/usr/bin/env bash
2
3# TravisCI workaround to use new clang-format while avoiding painful aliasing
4# into the subshell
5if which clang-format-8; then
6    clang-format-8 --verbose -style=file -i **/*.c **/*.h **/*.cpp
7else
8    clang-format --verbose -style=file -i **/*.c **/*.h **/*.cpp
9fi
10
11