Add .clang-format
file and format most files
#4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I tried to mimic the already existing style, but some parts were kinda inconsistent so I tried to do what I could.
I did not commit some formatted files because clang format kinda messed too much with them. Those files are:
config.cpp
andrecomp_input.h
. clang format really doesn't like theNLOHMANN_JSON_SERIALIZE_ENUM
macrorecomp.h
. Messes with multine macros and therecomp_context
struct.euc-jp.cpp
,rsp_vu.h
andrsp_vu_impl.h
. Those files come from other places so I thought it would be better to left them untouched.I did not add a clang tidy file yet because currently the repo doesn't build yet.
Feel free to be as nitpicky as you want.