Commit 16539c43 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #197 from rpearl/checkformat

Make check_format actually useful
parents 14192365 4f980805
#!/bin/sh #!/usr/bin/env bash
set -eu set -eu
failed=0 failed=0
for fn in $(find . -name '*.cpp' -o -name '*.h'); do for fn in $(find . -name '*.cpp' -o -name '*.h'); do
$1 -style=file -output-replacements-xml $fn | grep -q "replacement offset" && { echo $fn "failed clang-format check"; failed=1; } diff -u $fn <($1 -style=file $fn) || failed=1
done done
if [ $failed -eq 0 ]; then if [ $failed -eq 0 ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment