Lines Matching +full:clang +full:- +full:format +full:- +full:diff
7 CLANG_FORMAT=${CLANG_FORMAT:-clang-format}
8 ${CLANG_FORMAT} --version
14 Usage: ./clang-format-all.sh [-ah]
15 Format files in the SwiftShader repository
16 -h, --help Display this message and exit
17 -a, --all Format all files (default is to format only files active in a git CL)
22 while [[ $# -gt 0 ]]
25 -a|--all)
29 -h|--help)
36 if [[ $all -eq 1 ]]
40 # Double clang-format, as it seems that one pass isn't always enough
41 …find ${DIR} -iname "*.hpp" -o -iname "*.cpp" -o -iname "*.inl" | xargs ${CLANG_FORMAT} -i -style=f…
42 …find ${DIR} -iname "*.hpp" -o -iname "*.cpp" -o -iname "*.inl" | xargs ${CLANG_FORMAT} -i -style=f…
45 BASEDIR=$(git rev-parse --show-toplevel)
46 FILES=$(git diff --name-only --diff-filter=ACM | grep '\.cpp$\|\.hpp\|\.c$\|\.h$')
49 ${CLANG_FORMAT} -i -style=file "$BASEDIR/$FILE"