-
Notifications
You must be signed in to change notification settings - Fork 269
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
Conversation
【Hackathon 6th】Fundable Projects 引入clang-tidy
|
||
注意:以下规则检测基于2024.5.13的`paddlepaddle`的`develop`分支以及`pytorch`的检查规则 | ||
|
||
首先,我们将`paddlepaddle`编译`cmake`之后,我们使用`clang-tidy`的并行检查工具进行扫描,使用的规则便是`pytorch`设置的规则 |
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.
pytorch
未设置的规则,Paddle后续是否要设置?
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.
这部分我今晚列入到pytorch工作结束之后的后续工作当中
|
||
得到总 error错误数量为:**9148** | ||
|
||
整理一下各模块的错误数量,如下所示: |
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.
- 需要在正文里补充下之前的工作的结论: 20230501_introducing_clang_tidy.md 和 赛题四:在飞桨框架中引入 clang-tidy Tracking Issue Paddle#54073
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.
这部分内容我增加一个前置工作说明!
收到涛姐
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: Tao Luo ***@***.***>
发送时间: 2024年5月15日 12:03
收件人: PaddlePaddle/community ***@***.***>
抄送: fanhaoxuee ***@***.***>, Author ***@***.***>
主题: Re: [PaddlePaddle/community] 【Hackathon 6th NO.2】 引入clang-tidy (PR #900)
@luotao1 commented on this pull request.
In rfcs/CodeStyle/20240514_introducing_clang_tidy.md:
> + ' + HeaderFilterRegex: '^(paddle/(?!cinn)).*$' + AnalyzeTemporaryDtors: false + WarningsAsErrors: '*' + ... + ``` + + 而展开来看的话,pytorch支持**246**种规则的检查,规则数量在使用`clang-tidy`并行检查工具之后可以得到,并且要及时更新。 + + + +### `clang-tidy`进行存量扫描 + +注意:以下规则检测基于2024.5.13的`paddlepaddle`的`develop`分支以及`pytorch`的检查规则 + +首先,我们将`paddlepaddle`编译`cmake`之后,我们使用`clang-tidy`的并行检查工具进行扫描,使用的规则便是`pytorch`设置的规则
pytorch未设置的规则,Paddle后续是否要设置?
In rfcs/CodeStyle/20240514_introducing_clang_tidy.md:
> +> -extra-arg=-Wno-unused-variable \ +> -extra-arg=-Wno-overloaded-virtual \ +> -extra-arg=-Wno-defaulted-function-deleted \ +> -extra-arg=-Wno-delete-non-abstract-non-virtual-dtor \ +> -extra-arg=-Wno-return-type-c-linkage > clang-tidy.log 2>&1 +``` + +检索`clang-tidy.log`文件: + +```shell +grep "error:" clang-tidy.log | wc -l +``` + +得到总 error错误数量为:**9148** + +整理一下各模块的错误数量,如下所示:
需要在正文里补充下之前的工作的结论: 20230501_introducing_clang_tidy.md 和 PaddlePaddle/Paddle#54073
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
【Hackathon 6th】Fundable Projects 引入clang-tidy
对应的 tracking issue:PaddlePaddle/Paddle#64128