Skip to content

migrate from astyle to clang-format, add tests/ #8455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 15 commits into from
Closed
8 changes: 8 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BasedOnStyle: Chromium
AlignTrailingComments: true
BreakBeforeBraces: Allman
ColumnLimit: 0
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
SpacesBeforeTrailingComments: 2
SortIncludes: false
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ jobs:
TRAVIS_TAG: ${{ github.ref }}
run: |
sudo apt update
sudo apt install astyle
sudo apt install astyle clang-format-12
bash ./tests/ci/style_check.sh


Expand Down
7 changes: 3 additions & 4 deletions cores/esp8266/LwipDhcpServer-NonOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// these functions must exists as-is with "C" interface,
// nonos-sdk calls them at boot time and later

#include <lwip/init.h> // LWIP_VERSION
#include <lwip/init.h> // LWIP_VERSION

#include <lwip/netif.h>
#include "LwipDhcpServer.h"
Expand All @@ -35,8 +35,7 @@ DhcpServer dhcpSoftAP(&netif_git[SOFTAP_IF]);

extern "C"
{

void dhcps_start(struct ip_info *info, netif* apnetif)
void dhcps_start(struct ip_info* info, netif* apnetif)
{
// apnetif is esp interface, replaced by lwip2's
// netif_git[SOFTAP_IF] interface in constructor
Expand All @@ -61,4 +60,4 @@ extern "C"
dhcpSoftAP.end();
}

} // extern "C"
} // extern "C"
Loading