memgraph/tools/arc-clang-tidy
Teon Banek 4e56673f0d Add basic support for arc lint with clang-tidy
Reviewers: mferencevic, msantl

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1975
2019-04-23 15:51:36 +02:00

10 lines
252 B
Bash
Executable File

#!/bin/bash -e
## Run this script through arc lint
if echo "$1" | egrep -q '.(cpp|hpp)$'; then
clang-tidy -quiet -p build "$1"
elif echo "$1" | egrep -q '.lcp$'; then
clang-tidy -quiet -p build "$1.cpp" "$(dirname $1)/$(basename $1 .lcp).hpp"
fi