Skip to content
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

Merged
merged 1 commit into from
Dec 15, 2020

Conversation

wadefelix
Copy link
Contributor

PR types

Others

PR changes

Others

Describe

const_cast检查语句优化,直接简化即可。

@CLAassistant
Copy link

CLAassistant commented Dec 10, 2020

CLA assistant check
All committers have signed the CLA.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

luotao1
luotao1 previously approved these changes Dec 10, 2020
Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@luotao1
Copy link
Contributor

luotao1 commented Dec 11, 2020

可以再简化下,删去const_cast可以不用approve

@wadefelix
Copy link
Contributor Author

可以再简化下,删去const_cast可以不用approve

呃,grep没有排除删的情况,还是增删都检查。

@luotao1
Copy link
Contributor

luotao1 commented Dec 11, 2020

呃,grep没有排除删的情况,还是增删都检查。

可以修改grep

@wadefelix wadefelix force-pushed the renwei-dev-const_cast branch from 4148e11 to f60405f Compare December 11, 2020 03:08
lelelelelez
lelelelelez previously approved these changes Dec 11, 2020
Copy link
Contributor

@lelelelelez lelelelelez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const cast -> const_cast

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes! done

只检查增的情况,不检查删除情况
Copy link
Contributor

@lelelelelez lelelelelez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lelelelelez lelelelelez merged commit a908208 into PaddlePaddle:develop Dec 15, 2020
@wadefelix wadefelix deleted the renwei-dev-const_cast branch April 27, 2021 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants