Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
tools: add clang-tidy rule in src#26840
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
gengjiawen commented Mar 21, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
refack commented Mar 22, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
What I was referring to is V8's rule set. CI for this: https://ci.nodejs.org/job/node-clang-tidy/5/console |
Uh oh!
There was an error while loading. Please reload this page.
d905b48 to 4457b76CompareBridgeAR commented Apr 16, 2019
What's the status here? |
gengjiawen commented Apr 16, 2019
Need to change some rules in my side. Not know the progress in CI setup ? @refack |
refack commented Apr 16, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Let's see https://ci.nodejs.org/job/node-clang-tidy/6/ BTW: Apparently there a more comprehensive wrapper around LLVM's LibTooling - |
4457b76 to 13c6e0bComparegengjiawen commented Apr 16, 2019
I update the rules to disable Also not quite sure |
refack commented Apr 16, 2019
It's in the queue and will soon show up as https://ci.nodejs.org/job/node-clang-tidy/7/ |
gengjiawen commented Apr 20, 2019
refack commented Apr 24, 2019 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
3dad453 to b38e5c3Comparegengjiawen commented Apr 28, 2019
I rebased and some fix for the left. Can you trigger this task again ? |
18393d9 to cebebf0Comparegengjiawen commented Apr 29, 2019
Revert |
bnoordhuis left a comment
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.
Nice, LGTM!
gengjiawen commented May 1, 2019
@refack Need to retrigger the Jenkins task. |
gengjiawen commented May 9, 2019
@refack ping |
BridgeAR commented Dec 20, 2019
@gengjiawen is there something you have to wait upon to land this besides rebasing? |
gengjiawen commented Dec 20, 2019
This can land. But @refack works on a Jenkins job can make sure the rules checks on CI. |
richardlau commented Dec 20, 2019
I ran the job with default parameters and it failed: https://ci.nodejs.org/job/node-clang-tidy/12/console |
gengjiawen commented Dec 21, 2019
Sure. But I am not familiar with related cpp tools. I am thinking landing this change first, thoughts ? |
richardlau commented Dec 21, 2019
I don't use clang nor clang-tidy so I have no opinion on the rules. |
gengjiawen commented Jan 8, 2020
Force push to resolve conflict. |
49703c6 to 87828b1Compare This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot commented Jan 9, 2020
Trott commented Jan 12, 2020
Landed in a42dcbe |
PR-URL: #26840 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rich Trott <[email protected]>
PR-URL: #26840 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rich Trott <[email protected]>
PR-URL: #26840 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rich Trott <[email protected]>
PR-URL: #26840 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rich Trott <[email protected]>
In short
Todo
Tools to ensure the rules
@refack told me some rules are checked.
Basically the rules should check most operating systems because we have platform-specific code such as using macro.
And should keep clang-tidy in same version when possible.
I have some thought on docker get involved in this. Hopefully I can put my thought
in
node\buildgroup this weekends.Google Cpp Guideline
Related to #24315.
clang-tidy can handle some google cpp guideline rules.
I don't know should we
google-or just some of them.see https://clang.llvm.org/extra/clang-tidy/
Rules need to be select.
The rules now included are already applied or in-review.
How to deal with false positive and make exceptions
.
cc @addaleax@bnoordhuis@refack@joyeecheung@jasnell@richardlau@danbev@Trott@BridgeAR
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes