summaryrefslogtreecommitdiff
path: root/clang-format-diff.sh
Commit message (Collapse)AuthorAgeFilesLines
* Mention that the diff from clang-format and -tidy can be applied (#2526)Alon Zakai2019-12-131-1/+1
|
* Improve error detection in clang-tidy/clang-format scripts (#2156)Sam Clegg2019-06-061-2/+19
| | | | | | - Error out of shell script if any command fails. - Don't try to run on travis builds that are not PRs (i.e. don't have any upstream). - Prefer origin/master over just master (some folks don't use master locally). - Don't hide stderr by piping it to dev/null.
* Add clang-format-diff hook (#2057)Heejin Ahn2019-04-261-0/+11
This adds a commit hook to Travis CI that errors out if incoming PRs' diffs are not clang-formatted. Turns out clang-format is also capable of formatting JavaScript, but we haven't agreed on a style for JS yet, this PR disables JavaScript formatting for now. This also adds clang-format exempt header/footer to a generated source file.