Skip to content
Snippets Groups Projects
Unverified Commit 1d7326e7 authored by kongr45gpen's avatar kongr45gpen
Browse files

Attempt to make clang-tidy.sh compatible with any system

parent 16bc7677
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,10 @@
echo -e "\033[0;34mRunning clang-tidy...\033[0m"
cd "$(dirname "$0")"
GCCVERSION=`g++ -dumpversion`
clang-tidy `find ../src/ -type f -regextype posix-egrep -regex '.*\.(cpp|hpp|c|h)'` \
-extra-arg=-fcolor-diagnostics -- -std=c++17 -I../inc \
-I/usr/include/c++/7/ -I/usr/include/x86_64-linux-gnu/c++/7 -I../lib/etl/include
-extra-arg=-fcolor-diagnostics -- -std=c++17 -I../inc -I../lib/etl/include \
-I/usr/include/c++/$GCCVERSION -I/usr/include/x86_64-linux-gnu/c++/$GCCVERSION \
-I/usr/include/c++/$GCCVERSION/$MACHTYPE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment