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

Modernize the codebase - remove leftover NULLs #2499

Merged
merged 7 commits into from
Nov 14, 2022

Conversation

JanVogelsang
Copy link
Contributor

There were some occurrences of NULL keywords that were not picked up by clang-tidy and are now added in this PR.

@JanVogelsang JanVogelsang marked this pull request as ready for review October 13, 2022 19:58
@heplesser
Copy link
Contributor

@JanVogelsang I restarted one failed test, it seemed to be a technical issue on the runner. I would much prefer to put this PR in draft mode until #2498 is merge and base this PR on code with #2498 integrated. Otherwise it becomes more difficult to review and there is a small risk that merging this one would reintroduce && and II if diff should get confused.

@JanVogelsang JanVogelsang marked this pull request as draft October 14, 2022 08:27
@jougs jougs requested review from heplesser and jougs and removed request for heplesser October 19, 2022 13:19
@jougs jougs added S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation. I: Internal API Changes were introduced in basic internal workings of the simulator that developers need to know labels Oct 19, 2022
@jougs jougs added this to PRs in progress in Kernel via automation Oct 19, 2022
@jougs jougs changed the title Modernizing the codebase - removing leftover NULLs Modernize the codebase - remove leftover NULLs Oct 19, 2022
Copy link
Contributor

@heplesser heplesser left a comment

Choose a reason for hiding this comment

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

Looks good in general, but see comments. All commented-out code should be removed (in this PR only lines you touch), we have version control to keep an archive of what was. I also spotted some &&.

libnestutil/config.h.in Show resolved Hide resolved
libnestutil/lockptr.h Outdated Show resolved Hide resolved
libnestutil/lockptr.h Outdated Show resolved Hide resolved
sli/sliactions.cc Outdated Show resolved Hide resolved
sli/sliarray.cc Outdated Show resolved Hide resolved
sli/sliarray.cc Outdated Show resolved Hide resolved
sli/tarrayobj.cc Outdated Show resolved Hide resolved
Kernel automation moved this from PRs in progress to PRs pending approval Oct 20, 2022
@JanVogelsang JanVogelsang marked this pull request as ready for review October 20, 2022 11:25
@jougs jougs requested a review from heplesser November 10, 2022 09:19
Copy link
Contributor

@jougs jougs left a comment

Choose a reason for hiding this comment

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

Thanks! Other than my few comments, I'm fine with this.

One general question now that I come to think of it: Did any of your recent cleanup PRs touch code in the thirdparty directory? Our usual policy is to leave those as is in order to match the upstream code as good as possible. They are also excluded from our static code checks in the CI.

.clang-tidy Outdated Show resolved Hide resolved
doc/htmldoc/static/js/11.1.0_highlight.min.js Outdated Show resolved Hide resolved
doc/htmldoc/static/js/highlight.min.js Outdated Show resolved Hide resolved
Copy link
Contributor

@heplesser heplesser left a comment

Choose a reason for hiding this comment

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

Just a few details left ;).

sli/token.h Outdated Show resolved Hide resolved
sli/token.h Outdated Show resolved Hide resolved
sli/typechk.cc Outdated Show resolved Hide resolved
sli/typechk.cc Outdated Show resolved Hide resolved
sli/typechk.cc Outdated Show resolved Hide resolved
sli/slitype.h Outdated Show resolved Hide resolved
sli/typechk.cc Outdated Show resolved Hide resolved
Co-authored-by: Hans Ekkehard Plesser <hans.ekkehard.plesser@nmbu.no>
Copy link
Contributor

@heplesser heplesser left a comment

Choose a reason for hiding this comment

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

@JanVogelsang Thanks, all fine from my side now!

Copy link
Contributor

@jougs jougs left a comment

Choose a reason for hiding this comment

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

LGTM!

@jougs jougs merged commit 148d9f2 into nest:master Nov 14, 2022
Kernel automation moved this from PRs pending approval to Done (PRs and issues) Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: Internal API Changes were introduced in basic internal workings of the simulator that developers need to know S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation.
Projects
Kernel
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants