Skip to content

Conversation

@N-Dekker
Copy link
Contributor

Follow-up to commit 2cedb03, "ENH: Make string/type conversion functions static in ImageIOBase", David Doria, May 10, 2011.

Adjusted the calls to those member functions, following clang-tidy static-accessed-through-instance ("Checks for member expressions that access static members through instances").

N-Dekker added 2 commits June 12, 2025 16:00
Made all `GetComponentTypeAsString` and `GetPixelTypeAsString` member functions
static.

Follow-up to commit 2cedb03,
"ENH: Make string/type conversion functions static in ImageIOBase",
David Doria, May 10, 2011.
Replaced function calls of the form `instance->MemberFunction(x)` with
`T::MemberFunction(x)`, for the static member functions `GetPixelTypeAsString`
and `GetComponentTypeAsString`.

Following https://clang.llvm.org/extra/clang-tidy/checks/readability/static-accessed-through-instance.html
("Checks for member expressions that access static members through instances").
@github-actions github-actions bot added area:IO Issues affecting the IO module area:Video Issues affecting the Video module labels Jun 12, 2025
@N-Dekker N-Dekker marked this pull request as ready for review June 12, 2025 18:15
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

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

Thanks, Neils!

@thewtex thewtex merged commit d492bfb into InsightSoftwareConsortium:master Jun 12, 2025
16 checks passed
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Jun 20, 2025
Replaced function calls of the form `instance->MemberFunction(x)` with
`itk::T::MemberFunction(x)`, for the static member functions
`GetPixelTypeAsString` and `GetComponentTypeAsString`.

Follow-up to pull request InsightSoftwareConsortium#5391
commit 45e93bb
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Jun 20, 2025
Replaced function calls of the form `instance->MemberFunction(x)` with
`itk::T::MemberFunction(x)`, for the static member functions
`GetPixelTypeAsString` and `GetComponentTypeAsString`.

Removed the non-static version of the string <-> type conversion tests from
itkImageIOBaseTest.

Follow-up to pull request InsightSoftwareConsortium#5391
commit 45e93bb
hjmjohnson pushed a commit that referenced this pull request Jun 20, 2025
Replaced function calls of the form `instance->MemberFunction(x)` with
`itk::T::MemberFunction(x)`, for the static member functions
`GetPixelTypeAsString` and `GetComponentTypeAsString`.

Removed the non-static version of the string <-> type conversion tests from
itkImageIOBaseTest.

Follow-up to pull request #5391
commit 45e93bb
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Jun 21, 2025
Replaced function calls of the form `instance->MemberFunction(x)` with
`itk::T::MemberFunction(x)`, for the static member functions
`GetPixelTypeAsString` and `GetComponentTypeAsString, in Examples.

Follow-up to pull request InsightSoftwareConsortium#5391
commit 45e93bb
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Jun 21, 2025
Replaced function calls of the form `instance->MemberFunction(x)` with
`itk::T::MemberFunction(x)`, for the static member functions
`GetPixelTypeAsString` and `GetComponentTypeAsString`, in Examples.

Follow-up to pull request InsightSoftwareConsortium#5391
commit 45e93bb
hjmjohnson pushed a commit that referenced this pull request Jun 21, 2025
Replaced function calls of the form `instance->MemberFunction(x)` with
`itk::T::MemberFunction(x)`, for the static member functions
`GetPixelTypeAsString` and `GetComponentTypeAsString`, in Examples.

Follow-up to pull request #5391
commit 45e93bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:IO Issues affecting the IO module area:Video Issues affecting the Video module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants