Skip to content
Snippets Groups Projects
clang-format.sh 353 B
Newer Older
  • Learn to ignore specific revisions
  • kongr45gpen's avatar
    kongr45gpen committed
    #!/usr/bin/env bash
    
    #
    # Edit files, performing code style corrections using clang-format
    #
    # Usage:
    # $ ci/clang-format.sh
    #
    
    echo -e "\033[0;34mRunning clang-format...\033[0m"
    
    
    cd "$(dirname "$0")" || exit
    
    clang-format -style=file -i "$(find ../src/ ../inc/ ../test/ -type f -regextype posix-egrep -regex '.*\.(cpp|hpp|tpp|c|h)')" \