diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-04-26 14:42:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 14:42:40 -0700 |
commit | 87636dccd404a340d75acb1d96301581343f29ca (patch) | |
tree | f56ec2ea8e166e5d02018cf7adc1c960dbeba55d /src | |
parent | 34dd4c7893056e13cc9174db988d03e438a6af3d (diff) | |
download | binaryen-87636dccd404a340d75acb1d96301581343f29ca.tar.gz binaryen-87636dccd404a340d75acb1d96301581343f29ca.tar.bz2 binaryen-87636dccd404a340d75acb1d96301581343f29ca.zip |
Add clang-format-diff hook (#2057)
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/gen-s-parser.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gen-s-parser.inc b/src/gen-s-parser.inc index c9daba100..a27de9041 100644 --- a/src/gen-s-parser.inc +++ b/src/gen-s-parser.inc @@ -1,5 +1,7 @@ // DO NOT EDIT! This file generated by scripts/gen-s-parser.py +// clang-format off + #ifdef INSTRUCTION_PARSER #undef INSTRUCTION_PARSER char op[27] = {'\0'}; @@ -2260,3 +2262,5 @@ switch (op[0]) { parse_error: throw ParseException(std::string(op)); #endif // INSTRUCTION_PARSER + +// clang-format on |