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
Currently, there is no specific format that is enforced for the C++ code in the MATLAB interface. This makes it easy to make accidental formatting mistakes and leads to inconsistent code formatting (e.g. #38189 (comment)).
We should use clang-format on the source files in the matlab/ subfolder.
Component(s)
MATLAB
The text was updated successfully, but these errors were encountered:
…40588)
### Rationale for this change
If we use formatter, we don't need to check style manually.
### What changes are included in this PR?
* Add clang-format configuration to pre-commit
* This uses the same style as C++/Python/R uses
We can format by `pre-commit run -a`.
### Are these changes tested?
Yes.
### Are there any user-facing changes?
No.
* GitHub Issue: #35941
Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Kevin Gurney <kgurney@mathworks.com>
Describe the enhancement requested
Currently, there is no specific format that is enforced for the C++ code in the MATLAB interface. This makes it easy to make accidental formatting mistakes and leads to inconsistent code formatting (e.g. #38189 (comment)).
We should use
clang-format
on the source files in thematlab/
subfolder.Component(s)
MATLAB
The text was updated successfully, but these errors were encountered: