Skip to content

Commit

Permalink
Only apply clang-format to *.h *.cxx
Browse files Browse the repository at this point in the history
For some reason clang-format is trying to format JavaScript!
  • Loading branch information
cjh1 authored and jourdain committed Feb 7, 2017
1 parent 97ef759 commit 18e2244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/travis/run_clang_format_diff.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
DIFF=`git diff -U0 $1...$2 | clang-format-diff-3.8 -p1`
DIFF=`git diff -U0 $1...$2 -- '*.h' '*.cxx' | clang-format-diff-3.8 -p1`
if [ -z "$DIFF" ]; then
exit 0
else
Expand Down

0 comments on commit 18e2244

Please sign in to comment.