You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recommend using clang-format for linting C/C++/Objective-C code. Rather than burying this recommendation in a doc somewhere, perhaps we should enforce this style.
A rough outline of how this could go down:
clang-format all the existing code
add clang-format as part of the existing lint-cpp task
Add a clang-format pre-commmit git hook using husky
The thing to avoid is having patches that intermix formatting changes and code changes, because that makes things hairy when you need to go back through the log looking for something in the diffs. So the best you can do is have a flag day patch that reformats everything and then turn clang-format into the linter at the same time
We recommend using
clang-format
for linting C/C++/Objective-C code. Rather than burying this recommendation in a doc somewhere, perhaps we should enforce this style.A rough outline of how this could go down:
clang-format
all the existing codeclang-format
as part of the existinglint-cpp
taskclang-format
pre-commmit git hook using huskyConsiderations:
@ckerr:
@codebytere:
The text was updated successfully, but these errors were encountered: