-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Simplify the prompt of const_cast check. #29548
Simplify the prompt of const_cast check. #29548
Conversation
Thanks for your contribution! |
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.
LGTM
可以再简化下,删去const_cast可以不用approve |
呃, |
可以修改grep |
4148e11
to
f60405f
Compare
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.
LGTM
tools/check_file_diff_approvals.sh
Outdated
if [ ${HAS_CONST_CAST} ] && [ "${GIT_PR_ID}" != "" ]; then | ||
echo_line="You must have one RD (XiaoguangHu01,Xreki,luotao1) approval for the usage (either add or delete) of const_cast.\n" | ||
echo_line="You must have one RD (XiaoguangHu01,Xreki,luotao1) approval for the usage of const cast.\n" |
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.
const cast -> const_cast
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.
yes! done
只检查增的情况,不检查删除情况
f60405f
to
3ecccbc
Compare
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.
LGTM
PR types
Others
PR changes
Others
Describe
const_cast检查语句优化,直接简化即可。