-
Notifications
You must be signed in to change notification settings - Fork 7
Initial formatting with clang format file #32
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
Conversation
ComponentLib/PowerElectronics/DistributedGenerator/DistributedGenerator.cpp
Outdated
Show resolved
Hide resolved
| InductionMotor<ScalarT, IdxT>::InductionMotor( | ||
| IdxT id, ScalarT Lls, ScalarT Rs, ScalarT Llr, ScalarT Rr, ScalarT Lms, ScalarT RJ, ScalarT P) | ||
| : Lls_(Lls), Rs_(Rs), Llr_(Llr), Rr_(Rr), Lms_(Lms), RJ_(RJ), P_(P) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we configure formatting of functions with many arguments and initialization in constructor like below? It spans more lines of code but it is clearer and let you add comments for each variable, if necessary.
| InductionMotor<ScalarT, IdxT>::InductionMotor( | |
| IdxT id, ScalarT Lls, ScalarT Rs, ScalarT Llr, ScalarT Rr, ScalarT Lms, ScalarT RJ, ScalarT P) | |
| : Lls_(Lls), Rs_(Rs), Llr_(Llr), Rr_(Rr), Lms_(Lms), RJ_(RJ), P_(P) | |
| InductionMotor<ScalarT, IdxT>::InductionMotor(IdxT id, // explanation what this variable is | |
| ScalarT Lls, | |
| ScalarT Rs, | |
| ScalarT Llr, | |
| ScalarT Rr, | |
| ScalarT Lms, | |
| ScalarT RJ, | |
| ScalarT P) | |
| : Lls_(Lls), | |
| Rs_(Rs), | |
| Llr_(Llr), | |
| Rr_(Rr), | |
| Lms_(Lms), | |
| RJ_(RJ), | |
| P_(P) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is already set such that If you were to add a comment to one of the lines as shown, then the formatter will format as shown.
b3ff2c6 to
badffc3
Compare
|
Files which require some manual overriding of autoformatting:
|
4a1cde5 to
0ac489c
Compare
|
Closing in favor of #68. |
I only minimally edited some files manually, such as
PowerSystemData.hpp