Skip to content

Commit 305080f

Browse files
authored
pre-commit whitespace cleanup for s files (#463)
Enforced 3 hooks for s files: - end-of-file-fixer - mixed-line-ending - trailing-whitespace
1 parent 7380699 commit 305080f

17 files changed

Lines changed: 119 additions & 120 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ repos:
5656
description: ensures that links to vcs websites are permalinks
5757
- id: end-of-file-fixer
5858
description: makes sure files end in a newline and only a newline
59-
files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|sdi|sh|src|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$|^ext_libraries/.*$|^test/.*$
59+
files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$|^ext_libraries/.*$|^test/.*$
6060
- id: fix-byte-order-marker
6161
description: removes UTF-8 byte order marker
6262
- id: mixed-line-ending
6363
description: replaces or checks mixed line ending
64-
files: \.(asm|asp|bas|c|cl|cmd|common|component|cpp|cxx|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|sdi|sh|src|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$|^test/testgui/.*$
64+
files: \.(asm|asp|bas|c|cl|cmd|common|component|cpp|cxx|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$|^test/testgui/.*$
6565
- id: trailing-whitespace
6666
description: trims trailing whitespace
67-
files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|sdi|sh|src|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|ya?ml)$
67+
files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|ya?ml)$
6868
args: [--markdown-linebreak-ext=md]
6969
- repo: https://github.com/codespell-project/codespell
7070
rev: v2.4.1

main/basic/source/runtime/wnt-mingw.s

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
#**************************************************************
2-
#
3-
#
2+
#
3+
#
44
# Licensed to the Apache Software Foundation (ASF) under one
55
# or more contributor license agreements. See the NOTICE file
66
# distributed with this work for additional information
77
# regarding copyright ownership. The ASF licenses this file
88
# to you under the Apache License, Version 2.0 (the
99
# "License"); you may not use this file except in compliance
1010
# with the License. You may obtain a copy of the License at
11-
#
11+
#
1212
# http://www.apache.org/licenses/LICENSE-2.0
13-
#
13+
#
1414
# Unless required by applicable law or agreed to in writing,
1515
# software distributed under the License is distributed on an
1616
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1717
# KIND, either express or implied. See the License for the
1818
# specific language governing permissions and limitations
1919
# under the License.
20-
#
20+
#
2121
#**************************************************************
2222

2323
.intel_syntax

main/bridges/source/cpp_uno/cc50_solaris_intel/call.s

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
//**************************************************************
2-
/ *
2+
/ *
33
/ * Licensed to the Apache Software Foundation (ASF) under one
44
/ * or more contributor license agreements. See the NOTICE file
55
/ * distributed with this work for additional information
66
/ * regarding copyright ownership. The ASF licenses this file
77
/ * to you under the Apache License, Version 2.0 (the
88
/ * "License"); you may not use this file except in compliance
99
/ * with the License. You may obtain a copy of the License at
10-
/ *
10+
/ *
1111
/ * http://www.apache.org/licenses/LICENSE-2.0
12-
/ *
12+
/ *
1313
/ * Unless required by applicable law or agreed to in writing,
1414
/ * software distributed under the License is distributed on an
1515
/ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1616
/ * KIND, either express or implied. See the License for the
1717
/ * specific language governing permissions and limitations
1818
/ * under the License.
19-
/ *
19+
/ *
2020
/ *************************************************************/
2121

2222
.align 4
@@ -177,7 +177,7 @@ callVirtualMethod:
177177
je .handleByte
178178
cmp $3, %ecx
179179
je .handleByte / typelib_TypeClass_BYTE
180-
180+
181181
/ half word types
182182
cmp $4, %ecx / typelib_TypeClass_SHORT
183183
je .handleShort
@@ -255,7 +255,7 @@ callVirtualMethodExceptionHandler:
255255
movl -20(%ebp), %ebx
256256
call __1cG__CrunMex_rethrow_q6F_v_@PLT
257257
ret
258-
258+
259259
.type callVirtualMethodExceptionHandler, @function
260260
.size callVirtualMethodExceptionHandler, .-callVirtualMethodExceptionHandler
261261

main/bridges/source/cpp_uno/cc50_solaris_sparc/call.s

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
!\**************************************************************
2-
! *
2+
! *
33
! * Licensed to the Apache Software Foundation (ASF) under one
44
! * or more contributor license agreements. See the NOTICE file
55
! * distributed with this work for additional information
66
! * regarding copyright ownership. The ASF licenses this file
77
! * to you under the Apache License, Version 2.0 (the
88
! * "License"); you may not use this file except in compliance
99
! * with the License. You may obtain a copy of the License at
10-
! *
10+
! *
1111
! * http://www.apache.org/licenses/LICENSE-2.0
12-
! *
12+
! *
1313
! * Unless required by applicable law or agreed to in writing,
1414
! * software distributed under the License is distributed on an
1515
! * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1616
! * KIND, either express or implied. See the License for the
1717
! * specific language governing permissions and limitations
1818
! * under the License.
19-
! *
19+
! *
2020
! *************************************************************/
2121

2222
.global privateSnippetExecutor
@@ -53,7 +53,7 @@ privateSnippetExecutor:
5353
.size privateSnippetExecutor,(.-privateSnippetExecutor)
5454
.align 8
5555

56-
56+
5757
.global callVirtualMethod
5858
.type callVirtualMethod,2
5959
callVirtualMethod:
@@ -72,10 +72,10 @@ callVirtualMethod:
7272

7373
! prepare source location
7474
add %i4, 24, %l4
75-
75+
7676
! prepare real stack
7777
add %sp, 92, %l3
78-
78+
7979
.copyLong:
8080
ld [%l4+0], %l0
8181
st %l0, [%l3]

main/bridges/source/cpp_uno/cc5_solaris_sparc64/callvirtualmethod.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
!/**************************************************************
2-
! *
2+
! *
33
! * Licensed to the Apache Software Foundation (ASF) under one
44
! * or more contributor license agreements. See the NOTICE file
55
! * distributed with this work for additional information
66
! * regarding copyright ownership. The ASF licenses this file
77
! * to you under the Apache License, Version 2.0 (the
88
! * "License"); you may not use this file except in compliance
99
! * with the License. You may obtain a copy of the License at
10-
! *
10+
! *
1111
! * http://www.apache.org/licenses/LICENSE-2.0
12-
! *
12+
! *
1313
! * Unless required by applicable law or agreed to in writing,
1414
! * software distributed under the License is distributed on an
1515
! * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1616
! * KIND, either express or implied. See the License for the
1717
! * specific language governing permissions and limitations
1818
! * under the License.
19-
! *
19+
! *
2020
! *************************************************************/
2121

2222

main/bridges/source/cpp_uno/cc5_solaris_sparc64/fp.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
!/**************************************************************
2-
! *
2+
! *
33
! * Licensed to the Apache Software Foundation (ASF) under one
44
! * or more contributor license agreements. See the NOTICE file
55
! * distributed with this work for additional information
66
! * regarding copyright ownership. The ASF licenses this file
77
! * to you under the Apache License, Version 2.0 (the
88
! * "License"); you may not use this file except in compliance
99
! * with the License. You may obtain a copy of the License at
10-
! *
10+
! *
1111
! * http://www.apache.org/licenses/LICENSE-2.0
12-
! *
12+
! *
1313
! * Unless required by applicable law or agreed to in writing,
1414
! * software distributed under the License is distributed on an
1515
! * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1616
! * KIND, either express or implied. See the License for the
1717
! * specific language governing permissions and limitations
1818
! * under the License.
19-
! *
19+
! *
2020
! *************************************************************/
2121

2222

main/bridges/source/cpp_uno/cc5_solaris_sparc64/vtableslotcall.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
!/**************************************************************
2-
! *
2+
! *
33
! * Licensed to the Apache Software Foundation (ASF) under one
44
! * or more contributor license agreements. See the NOTICE file
55
! * distributed with this work for additional information
66
! * regarding copyright ownership. The ASF licenses this file
77
! * to you under the Apache License, Version 2.0 (the
88
! * "License"); you may not use this file except in compliance
99
! * with the License. You may obtain a copy of the License at
10-
! *
10+
! *
1111
! * http://www.apache.org/licenses/LICENSE-2.0
12-
! *
12+
! *
1313
! * Unless required by applicable law or agreed to in writing,
1414
! * software distributed under the License is distributed on an
1515
! * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1616
! * KIND, either express or implied. See the License for the
1717
! * specific language governing permissions and limitations
1818
! * under the License.
19-
! *
19+
! *
2020
! *************************************************************/
2121

2222

main/bridges/source/cpp_uno/gcc3_freebsd_intel/call.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
/**************************************************************
2-
*
2+
*
33
* Licensed to the Apache Software Foundation (ASF) under one
44
* or more contributor license agreements. See the NOTICE file
55
* distributed with this work for additional information
66
* regarding copyright ownership. The ASF licenses this file
77
* to you under the Apache License, Version 2.0 (the
88
* "License"); you may not use this file except in compliance
99
* with the License. You may obtain a copy of the License at
10-
*
10+
*
1111
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
12+
*
1313
* Unless required by applicable law or agreed to in writing,
1414
* software distributed under the License is distributed on an
1515
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1616
* KIND, either express or implied. See the License for the
1717
* specific language governing permissions and limitations
1818
* under the License.
19-
*
19+
*
2020
*************************************************************/
2121

2222
.text

0 commit comments

Comments
 (0)