-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added .clang-format - find . -name "*.c" -or -name "*.h" | xargs sed -e 's#/\* \*INDENT-ON\* \*/#/\* clang-format on \*/#g' -e 's#/\* \*INDENT-OFF\* \*/#/\* clang-format off \*/#g' -i - find . -name "*.c" -or -name "*.h" | xargs clang-format-11 -i - substituted hack/checkstyle.sh with simpler call to clang-format-11 in Makefile - removed .dir-locals.el as it is likely to be wrong now - fixed ci checkstyle to use clang-format
- Loading branch information
Showing
49 changed files
with
12,379 additions
and
12,992 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# based on https://github.com/FDio/vpp/blob/f3b0004f8a5de433bf8a601a7e21c7f73b321cee/.clang-format | ||
# Minimal clang-format version is 11 | ||
|
||
BasedOnStyle: GNU | ||
UseTab: Never | ||
SpaceAfterCStyleCast: true | ||
SortIncludes: false | ||
AlignConsecutiveMacros: true | ||
BreakBeforeTernaryOperators: false | ||
BreakBeforeBinaryOperators: None | ||
ContinuationIndentWidth: 2 | ||
|
||
ForEachMacros: | ||
- 'clib_bitmap_foreach' | ||
- 'pool_foreach' | ||
- 'pool_foreach_index' | ||
- 'pool_foreach_pointer' | ||
- 'vec_foreach' | ||
- 'vec_foreach_backwards' | ||
- 'vec_foreach_index' | ||
- 'vec_foreach_index_backwards' | ||
- 'vec_foreach_pointer' | ||
- 'vlib_foreach_rx_tx' | ||
- 'foreach_int' | ||
- 'foreach_pointer' | ||
- 'foreach_vlib_main' | ||
- 'foreach_set_bit_index' | ||
- 'foreach_vlib_frame_bitmap_set_bit_index' | ||
- 'FOREACH_ARRAY_ELT' | ||
- 'RTE_ETH_FOREACH_DEV' | ||
- 'foreach_vnet_dev_rx_queue_runtime' | ||
- 'foreach_vnet_dev_counter' | ||
- 'foreach_vnet_dev_port_rx_queue' | ||
- 'foreach_vnet_dev_port_tx_queue' | ||
- 'foreach_vnet_dev_port' | ||
- 'foreach_vnet_dev_args' | ||
- 'foreach_vnet_dev_port_args' | ||
|
||
StatementMacros: | ||
- 'CLIB_MULTIARCH_FN' | ||
- 'VLIB_NODE_FN' | ||
- 'VNET_DEV_NODE_FN' | ||
- 'VNET_DEVICE_CLASS_TX_FN' | ||
- '__clib_section' | ||
- '__clib_aligned' | ||
|
||
WhitespaceSensitiveMacros: | ||
- 'WARN_ON' | ||
- 'WARN_OFF' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,11 +98,10 @@ jobs: | |
password: ${{ secrets.CUR_REGISTRY_PASSWORD }} | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
# the checkstyle script needs a bit of git history | ||
fetch-depth: 2 | ||
- name: Check the code style | ||
run: make checkstyle | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '11' | ||
|
||
integration: | ||
runs-on: ["self-hosted", "hugepages"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.