Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upsrc: apply clang-tidy readability-delete-null-pointer #26813
Conversation
nodejs-github-bot
added
the
C++
label
Mar 20, 2019
refack
approved these changes
Mar 20, 2019
This comment has been minimized.
This comment has been minimized.
|
@gengjiawen I think you should add a CI: https://ci.nodejs.org/job/node-test-pull-request/21696/ |
This comment has been minimized.
This comment has been minimized.
|
yeap, but I am still working on a way to ensure the rules. |
This comment has been minimized.
This comment has been minimized.
|
Very preliminary https://ci.nodejs.org/job/node-clang-tidy/1/console |
bnoordhuis
approved these changes
Mar 20, 2019
refack
added
the
author ready
label
Mar 20, 2019
richardlau
approved these changes
Mar 20, 2019
gengjiawen
referenced this pull request
Mar 21, 2019
Open
[WIP]tools: add clang-tidy rule in src #26840
addaleax
approved these changes
Mar 21, 2019
refack
force-pushed the
gengjiawen:readability-delete-null-pointer
branch
from
6838311
to
c757cb1
Mar 22, 2019
refack
merged commit c757cb1
into
nodejs:master
Mar 22, 2019
targos
added a commit
to targos/node
that referenced
this pull request
Mar 27, 2019
targos
added a commit
to targos/node
that referenced
this pull request
Mar 27, 2019
targos
added a commit
to targos/node
that referenced
this pull request
Mar 27, 2019
targos
added a commit
that referenced
this pull request
Mar 27, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
gengjiawen commentedMar 20, 2019
•
edited by refack
see: https://isocpp.org/wiki/faq/freestore-mgmt#delete-handles-null and https://clang.llvm.org/extra/clang-tidy/checks/readability-delete-null-pointer.html.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes