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

【Hackathon 6th Fundable Projects No.2】 引入clang-tidy #900

Merged
merged 4 commits into from
May 16, 2024

Conversation

ApricityXX
Copy link
Contributor

@ApricityXX ApricityXX commented May 14, 2024

【Hackathon 6th】Fundable Projects 引入clang-tidy
对应的 tracking issue:PaddlePaddle/Paddle#64128

【Hackathon 6th】Fundable Projects 引入clang-tidy
Copy link

paddle-bot bot commented May 14, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请检查PR提交格式和内容是否完备,具体请参考示例模版
Your PR has been submitted. Thanks for your contribution!
Please check its format and content. For this, you can refer to Template and Demo.


注意:以下规则检测基于2024.5.13的`paddlepaddle`的`develop`分支以及`pytorch`的检查规则

首先,我们将`paddlepaddle`编译`cmake`之后,我们使用`clang-tidy`的并行检查工具进行扫描,使用的规则便是`pytorch`设置的规则
Copy link
Collaborator

Choose a reason for hiding this comment

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

pytorch未设置的规则,Paddle后续是否要设置?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这部分我今晚列入到pytorch工作结束之后的后续工作当中


得到总 error错误数量为:**9148**

整理一下各模块的错误数量,如下所示:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这部分内容我增加一个前置工作说明!

@ApricityXX
Copy link
Contributor Author

ApricityXX commented May 15, 2024 via email

@ApricityXX ApricityXX changed the title 【Hackathon 6th NO.2】 引入clang-tidy 【Hackathon 6th No.2】 引入clang-tidy May 15, 2024
@luotao1 luotao1 merged commit cd78885 into PaddlePaddle:master May 16, 2024
1 check passed
@luotao1
Copy link
Collaborator

luotao1 commented May 16, 2024

  1. 还需要补充和调研下:原第三部分 【移除pre-commit中的-WnoXXX (.pre-commit-config.yaml)】
  1. 存量修复那节,需补充:每个规则的存量修完的最后一个PR,可以先把 .clang-tidy对应规则的 - 给去掉,大家本地提交的时候,precommit会拦住。(话术可重新组织)

@ApricityXX

@luotao1 luotao1 changed the title 【Hackathon 6th No.2】 引入clang-tidy 【Hackathon 6th Fundable Projects No.2】 引入clang-tidy May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants