File tree 4 files changed +56
-1
lines changed
4 files changed +56
-1
lines changed Original file line number Diff line number Diff line change
1
+ BasedOnStyle : LLVM
Original file line number Diff line number Diff line change
1
+ name : clang-format check
2
+ on : [pull_request]
3
+
4
+ jobs :
5
+ clang-format-check :
6
+ name : clang-format
7
+ runs-on : " ubuntu-20.04"
8
+ steps :
9
+ - name : Setup environment
10
+ run : |
11
+ sudo apt-get install -yqq clang-format-11
12
+ - name : Checkout llvm-dialects
13
+ uses : actions/checkout@v2
14
+ - name : Run clang-format
15
+ run : |
16
+ git diff ${{ github.base_ref }} -U0 --no-color -- '**/*.cpp' '**/*.cc' '**/*.h' '**/*.hh' \
17
+ | clang-format-diff-11 -p1 >not-formatted.diff 2>&1
18
+ - name : Check formatting
19
+ run : |
20
+ if ! grep -q '[^[:space:]]' not-formatted.diff ; then
21
+ echo "Code formatted. Success."
22
+ else
23
+ echo "Code not formatted."
24
+ echo "Please run clang-format-diff on your changes and push again:"
25
+ echo " git diff ${{ github.base_ref }} -U0 --no-color | clang-format-diff -p1 -i"
26
+ echo ""
27
+ echo "Tip: you can disable clang-format checks: https://clang.llvm.org/docs/ClangFormatStyleOptions.html#disabling-formatting-on-a-piece-of-code"
28
+ echo ""
29
+ echo "Diff:"
30
+ cat not-formatted.diff
31
+ echo ""
32
+ exit 3
33
+ fi
Original file line number Diff line number Diff line change
1
+ name : Spell Check
2
+ on : [pull_request]
3
+
4
+ jobs :
5
+ run :
6
+ name : typos
7
+ runs-on : " ubuntu-20.04"
8
+ steps :
9
+ - name : Checkout Repository
10
+ uses : actions/checkout@v2
11
+
12
+ - name : Check spelling
13
+
14
+
15
+ - name : Help
16
+ if : always()
17
+ run : |
18
+ echo 'To run the check locally, install typos from https://github.com/crate-ci/typos and run `typos` in the repository.'
19
+ echo 'Run `typos -w` to automatically correct spelling mistakes.'
20
+ echo
21
+ echo 'Please add false positives to .typos.toml'
Original file line number Diff line number Diff line change @@ -915,7 +915,7 @@ std::unique_ptr<PredicateExpr> DialectsContext::parsePredicateExpr(DagInit *dag)
915
915
916
916
if (!argName) {
917
917
report_fatal_error (
918
- Twine (" Predicate appliation has missing argument name: " )
918
+ Twine (" Predicate application has missing argument name: " )
919
919
+ dag->getAsString ());
920
920
}
921
921
You can’t perform that action at this time.
0 commit comments