-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add style check to workflow #2062
Conversation
@falbrechtskirchinger thanks for the nice tool. 👍 Instead of using the clang-format-19, could you please try to use the version in the latest-ubuntu by adjusting .clang-format file in the repo? Could you also exclude /test/httplib.h and /test/httplib.cc from the style check since they are automatically generated? Also could you make an adjustment to Thanks! |
The problem is two lines, where an initialization of a struct is mistaken for a definition of one and a space is inserted, where it doesn't belong. Changing the style of the initialization will probably fix that and simplify the workflow.
Sure.
rm -f $$file.formatted; \ Do you want it in |
Oh, I missed that... You don't have to change |
c45abd3
to
17f1918
Compare
You'll notice these lines in the diff of - struct in6_addr addr6{};
- struct in_addr addr{};
+ struct in6_addr addr6 {};
+ struct in_addr addr {}; Changing these initializations to |
17f1918
to
fea64fe
Compare
Sounds good to me. Please go ahead to make the change |
Done. #2063 I've also added the example files, as it only affected one file. |
Thanks for the adjustments! |
Add a non-fatal check to see if sources have been formatted. Unfortunately, there are minor version differences. Version 18 (the default in
ubuntu-latest
) formats differently than versions 19 and 20.I'm not including the examples for now to not make too much noise.