-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Modernize use nullptr #17113
Merged
andy31415
merged 4 commits into
project-chip:master
from
andy31415:modernize_use_nullptr
Apr 6, 2022
Merged
Modernize use nullptr #17113
andy31415
merged 4 commits into
project-chip:master
from
andy31415:modernize_use_nullptr
Apr 6, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ran clang-tidy and updated like: ``` ./scripts/run-clang-tidy-on-compile-commands.py --compile-database out/linux-x64-tests/compile_commands.json fix ``` May need more passes for darwin if CI on darwin fails.
pullapprove
bot
requested review from
anush-apple,
austinh0,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
cecille,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
emargolis,
erjiaqing,
franck-apple,
gjc13,
hawk248,
harsha-rajendran,
isiu-apple,
jelderton and
jepenven-silabs
April 6, 2022 14:54
pullapprove
bot
requested review from
vijs,
sagar-apple,
vivien-apple,
saurabhst,
wbschiller,
selissia,
woody-apple,
tcarmelveilleux,
xylophone21,
tecimovic and
yufengwangca
April 6, 2022 14:54
msandstedt
approved these changes
Apr 6, 2022
Damian-Nordic
approved these changes
Apr 6, 2022
PR #17113: Size comparison from 56f738f to 96222cd Full report (19 builds for cc13x2_26x2, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
tcarmelveilleux
approved these changes
Apr 6, 2022
PR #17113: Size comparison from 56f738f to bc7952b Full report (12 builds for cc13x2_26x2, linux, mbed, nrfconnect, p6, telink)
|
PR #17113: Size comparison from 56f738f to 652c3fd Increases above 0.2%:
Increases (3 builds for efr32)
Decreases (3 builds for efr32)
Full report (19 builds for cc13x2_26x2, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
andrei-menzopol
pushed a commit
to andrei-menzopol/connectedhomeip
that referenced
this pull request
Apr 14, 2022
* Enable modernize-use-nullptr clang-tidy. Ran clang-tidy and updated like: ``` ./scripts/run-clang-tidy-on-compile-commands.py --compile-database out/linux-x64-tests/compile_commands.json fix ``` May need more passes for darwin if CI on darwin fails. * Restyle * More nullptr fixes * Update zap template from NULL to nullptr
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.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Using nullptr makes it clear that we use pointers not integers. Generally less ambigous code and friedlier to generic programming.
Change overview
Enable clang-tidy check, update a bunch of code.
Testing
Automated change. I did run unit tests again to confirm that code compiles and tests pass.