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

[clang-tidy] NO.6 enable modernize-avoid-c-arrays step: 2 #55954

Merged
merged 8 commits into from
Aug 7, 2023

Conversation

gouzil
Copy link
Member

@gouzil gouzil commented Aug 3, 2023

PR types

Others

PR changes

Others

Description

所有的modernize-avoid-c-arrays检查将会在此pr做完

相关链接:

@paddle-bot
Copy link

paddle-bot bot commented Aug 3, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Aug 3, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Aug 3, 2023
@gouzil
Copy link
Member Author

gouzil commented Aug 6, 2023

@GreatV 求助 windows ci 报错

@GreatV
Copy link
Contributor

GreatV commented Aug 6, 2023

@gouzil
超时了,重新运行一下,看看

@gouzil
Copy link
Member Author

gouzil commented Aug 6, 2023

@gouzil 超时了

没超时呀, PR-CI-Windows-OPENBLAS

error C2679: binary '==': no operator found which takes a right-hand operand of type 'const T2' (or there is no acceptable conversion)

CHECK_EQ(s.data(), arr);
CHECK_EQ(s.begin(), std::begin(arr));
CHECK_EQ(s.end(), std::end(arr));
CHECK_EQ(s.data(), arr.data());
Copy link
Contributor

Choose a reason for hiding this comment

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

估计msvc有啥限制吧,用 nolint ?

Copy link
Member Author

@gouzil gouzil Aug 6, 2023

Choose a reason for hiding this comment

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

感觉像paddle::span的问题, 这个CHECK_EQpaddle/utils/array_ref_test.cc下没有问题,可以暂时考虑先nolint

@gouzil gouzil requested a review from GreatV August 7, 2023 06:20
@luotao1 luotao1 added HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 and removed HappyOpenSource 快乐开源活动issue与PR labels Aug 7, 2023
@luotao1 luotao1 merged commit 5ada98b into PaddlePaddle:develop Aug 7, 2023
@gouzil gouzil deleted the c_t_avoid_c_arrays branch August 11, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants