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
Pass methods arguments by const refs #161
Conversation
Hi Razdeep |
src/Core/Formatter.cpp
Outdated
{ | ||
this->log = log; | ||
updateBinary(clangFormatBinary); | ||
updateStyle(clangFormatStyle); | ||
Formatter::updateBinary(clangFormatBinary); |
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.
Do not fully qualify the name. It may confuse users to think that updateBinary is a static function.
src/Core/Formatter.cpp
Outdated
updateBinary(clangFormatBinary); | ||
updateStyle(clangFormatStyle); | ||
Formatter::updateBinary(clangFormatBinary); | ||
Formatter::updateStyle(clangFormatStyle); |
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.
Same thing. Do not fully qualify the method name.
@Razdeep , Reviewer has requested changes to your Pull request. I will again ask a reviewer to review it after you update this PR by pushing to PR originating branch |
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.
Check inline comments
Thank you for the changes. I have re-requested the review |
Good. you can proceed with other files. |
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.
Why do you use this->
? Are you familiar with classes?
@Razdeep , Reviewer has requested changes to your Pull request. I will again ask a reviewer to review it after you update this PR by pushing to PR originating branch |
Yes @Razdeep, I missed it too, |
You will get to learn a lot of C++ Standards. Please Continue the good work ;-D |
Maybe you could also try #150, you will get to know the source code better and also will help others to understand the code better. But if you wish to do, make sure to do it in another PR and a good per-requisite would be getting familiar with Qt Signal and Slots |
And you should use imperative instead of descriptive in the titles of commit messages because it's brief and clear. For example, the title of this PR should be "Pass method arguments by const refs". You can read https://chris.beams.io/posts/git-commit/ for more guidance on writing commit messages. |
Thank you for the changes. I have re-requested the review |
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.
Looks good to me, thanks for your contribution!
Description
Addresses Issue #151
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate)
Type of changes
Checklist
.clang-format
file in the root directory to format my codes.git reset
and commit again, or usegit rebase -i
andgit commit --amend
to modify the commit messages.)