File tree 4 files changed +19
-17
lines changed
4 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,17 @@ UseTab: Never
52
52
BreakBeforeBraces : Custom
53
53
54
54
# Control of individual brace wrapping cases
55
- BraceWrapping : {
56
- AfterClass : ' true' ,
57
- AfterControlStatement : ' true' ,
58
- AfterEnum : ' true' ,
59
- AfterFunction : ' true' ,
60
- AfterNamespace : ' true' ,
61
- AfterStruct : ' true' ,
62
- AfterUnion : ' true' ,
63
- BeforeCatch : ' true' ,
64
- BeforeElse : ' true' ,
65
- IndentBraces : ' false' ,
66
- }
55
+ BraceWrapping :
56
+ AfterCaseLabel : ' true'
57
+ AfterClass : ' true'
58
+ AfterControlStatement : ' true'
59
+ AfterEnum : ' true'
60
+ AfterFunction : ' true'
61
+ AfterNamespace : ' true'
62
+ AfterStruct : ' true'
63
+ AfterUnion : ' true'
64
+ BeforeCatch : ' true'
65
+ BeforeElse : ' true'
66
+ IndentBraces : ' false'
67
+
67
68
...
Original file line number Diff line number Diff line change 15
15
16
16
jobs :
17
17
clang_format :
18
- runs-on : ubuntu-20 .04
18
+ runs-on : ubuntu-22 .04
19
19
steps :
20
20
- uses : actions/checkout@v1
21
21
22
22
- name : Run clang format
23
23
run : |
24
24
sudo apt update
25
- sudo apt install -y git clang-format-8
25
+ sudo apt install -y git clang-format-12
26
26
if [ $? -ge 1 ]; then return 1; fi
27
27
./.run-clang-format
28
28
if [ $? -ge 1 ]; then return 1; fi
29
29
output=$(git diff)
30
+ echo $output
30
31
if [ -n "$output" ]; then exit 1; else exit 0; fi
Original file line number Diff line number Diff line change 8
8
pull_request :
9
9
paths :
10
10
- ' tesseract**'
11
- - ' .github/workflows/clang_format .yml'
12
- - ' **clang -format'
11
+ - ' .github/workflows/cmake_format .yml'
12
+ - ' **cmake -format'
13
13
schedule :
14
14
- cron : ' 0 5 * * *'
15
15
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- find . -type d \( -name bullet3_ros -o -name fcl_ros -o -name libccd_ros -o -name gtest_ros -o -name tesseract_ext \) -prune -o -type f -regex ' .*\.\(cpp\|hpp\|cc\|cxx\|h\|hxx\)' -exec clang-format-8 -style=file -i {} \;
2
+ find . -type d \( -name bullet3_ros -o -name fcl_ros -o -name libccd_ros -o -name gtest_ros -o -name tesseract_ext \) -prune -o -type f -regex ' .*\.\(cpp\|hpp\|cc\|cxx\|h\|hxx\)' -exec clang-format-12 -style=file -i {} \;
You can’t perform that action at this time.
0 commit comments