#!/bin/bash
git clone "https://codereview.qt-project.org/qt/qt5"
cd qt5
git submodule update --init --recursive
cd ..
mkdir homebuild
cd homebuild
#clazy variant
# find ../qt5/qtbase/src/corelib/ipc/ -type f -name '*.cpp' |xargs ~/Qt/Tools/QtCreator/libexec/qtcreator/clang/bin/clazy-standalone --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
cmake ../qt5/ -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DFEATURE_developer_build=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
find ../qt5/qt5compat -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtcoap -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1   
find ../qt5/qtfeedback -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1   
find ../qt5/qtimageformats -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log  2>&1  
find ../qt5/qtmultimedia -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtqa -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log  2>&1
find ../qt5/qtremoteobjects -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtserialport -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qttools -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
#find ../qt5/qtwebengine -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log
find ../qt5/qtactiveqt -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtconnectivity -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtgamepad -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtlanguageserver -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtnetworkauth -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtquick3d -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtrepotools -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtshadertools -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qttranslations -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtwebglplugin -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtbase  -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtdatavis3d -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtgraphs -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log  2>&1
find ../qt5/qtlocation -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtopcua -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log     2>&1
find ../qt5/qtquick3dphysics -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtscxml -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtspeech -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log        2>&1
find ../qt5/qtvirtualkeyboard -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtwebsockets -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtcanvas3d -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtdeclarative -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtgrpc -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtlottie -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtpim -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log      2>&1
find ../qt5/qtquickeffectmaker  -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtsensors -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtsvg -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log      2>&1
find ../qt5/qtwayland -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtwebview -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log   2>&1
find ../qt5/qt3d -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log            2>&1
find ../qt5/qtcharts -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtdoc -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log        2>&1
find ../qt5/qthttpserver -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtmqtt -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtpositioning -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtquicktimeline -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtserialbus -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log  2>&1
find ../qt5/qtsystems -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log    2>&1
find ../qt5/qtwebchannel -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtxmlpatterns -type f -name '*.cpp' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1

find ../qt5/qt5compat -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtcoap -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log       2>&1
find ../qt5/qtfeedback -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log    2>&1
find ../qt5/qtimageformats -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log    2>&1
find ../qt5/qtmultimedia -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtqa -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log        2>&1
find ../qt5/qtremoteobjects -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtserialport -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qttools -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
#find ../qt5/qtwebengine -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtactiveqt -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtconnectivity -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtgamepad -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtlanguageserver -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtnetworkauth -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtquick3d -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtrepotools -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtshadertools -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qttranslations -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtwebglplugin -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtbase  -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtdatavis3d -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtgraphs -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log  2>&1
find ../qt5/qtlocation -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtopcua -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log     2>&1
find ../qt5/qtquick3dphysics -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtscxml -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtspeech -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log        2>&1
find ../qt5/qtvirtualkeyboard -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtwebsockets -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtcanvas3d -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtdeclarative -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtgrpc -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtlottie -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtpim -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log      2>&1
find ../qt5/qtquickeffectmaker  -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtsensors -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtsvg -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log      2>&1
find ../qt5/qtwayland -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtwebview -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log   2>&1
find ../qt5/qt3d -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log            2>&1
find ../qt5/qtcharts -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtdoc -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log        2>&1
find ../qt5/qthttpserver -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtmqtt -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtpositioning -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtquicktimeline -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtserialbus -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log  2>&1
find ../qt5/qtsystems -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log    2>&1
find ../qt5/qtwebchannel -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
find ../qt5/qtxmlpatterns -type f -name '*.h' |xargs clang-tidy-15 --extra-arg=-Wsign-compare >> qt5_full.log 2>&1
