awesome-widgets/utils/qt-code-style.sh
arcan1s af0dd25b86 * add clang-format configuration and script
* add cppcheck script proto (TODO include directories according ot cmake
    output)
TODO do it while build time and/or commit
2015-10-14 01:01:25 +03:00

11 lines
430 B
Bash
Executable File

#!/bin/bash
# This script will check the source code by using clang-format with required arguments.
# The template comes from https://gist.github.com/Uflex/7086827
# More details may be found here http://clang.llvm.org/docs/ClangFormatStyleOptions.html
clang-format -i \
-style=file \
$(find ../sources -not -path '*3rdparty*' \
-and \( -name '*.cpp' -or -name '*.h' \))