Skip to content

clang-tidy: resolve modernize-use-nullptr#592

Merged
knoepfel merged 3 commits into
mainfrom
maintenance/clang-tidy/modernize-use-nullptr
May 14, 2026
Merged

clang-tidy: resolve modernize-use-nullptr#592
knoepfel merged 3 commits into
mainfrom
maintenance/clang-tidy/modernize-use-nullptr

Conversation

@greenc-FNAL
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Mechanical clang-tidy cleanup that replaces literal 0 initializers with nullptr for pointer fields in the Python plugin's PyTypeObject definitions and a few local PyObject* variables, satisfying the modernize-use-nullptr check.

Changes:

  • Replace 0 with nullptr in PyTypeObject slot initializers across four Python wrapper translation units.
  • Replace 0 with nullptr in local PyObject* initializations in parse_args and sc_provide.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
plugins/python/src/modulewrap.cpp nullptr for PyObject* locals and PhlexModule_Type/PhlexSource_Type slots.
plugins/python/src/lifelinewrap.cpp nullptr for pointer slots in PhlexLifeline_Type.
plugins/python/src/dciwrap.cpp nullptr for pointer slots in PhlexDataCellIndex_Type.
plugins/python/src/configwrap.cpp nullptr for pointer slots in PhlexConfig_Type.

@wlav
Copy link
Copy Markdown
Contributor

wlav commented May 14, 2026

It'd be nice if the comment lines in the type object declarations can be kept lined-up after this chance.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@           Coverage Diff           @@
##             main     #592   +/-   ##
=======================================
  Coverage   82.16%   82.16%           
=======================================
  Files         157      157           
  Lines        5719     5720    +1     
  Branches      646      646           
=======================================
+ Hits         4699     4700    +1     
- Misses        807      808    +1     
+ Partials      213      212    -1     
Flag Coverage Δ
scripts 76.12% <ø> (ø)
unittests 82.16% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
plugins/python/src/configwrap.cpp 75.60% <ø> (ø)
plugins/python/src/dciwrap.cpp 100.00% <ø> (ø)
plugins/python/src/lifelinewrap.cpp 56.25% <ø> (ø)
plugins/python/src/modulewrap.cpp 80.00% <100.00%> (+0.02%) ⬆️

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88f21d7...96058d2. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

pcanal
pcanal previously approved these changes May 14, 2026
Copy link
Copy Markdown
Contributor

@pcanal pcanal left a comment

Choose a reason for hiding this comment

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

Thanks.

@knoepfel
Copy link
Copy Markdown
Member

@phlexbot format

@github-actions
Copy link
Copy Markdown
Contributor

No automatic format fixes were necessary.

@knoepfel
Copy link
Copy Markdown
Member

It'd be nice if the comment lines in the type object declarations can be kept lined-up after this chance.

@wlav, can you take a look and approve if it looks good to you?

@knoepfel knoepfel requested a review from pcanal May 14, 2026 14:57
Copy link
Copy Markdown
Contributor

@wlav wlav left a comment

Choose a reason for hiding this comment

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

LGTM!

@knoepfel knoepfel merged commit 10694ca into main May 14, 2026
39 checks passed
@knoepfel knoepfel deleted the maintenance/clang-tidy/modernize-use-nullptr branch May 14, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants