Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ENH: Remove unused clang-format setup code #5008

Conversation

hjmjohnson
Copy link
Member

The installation of the clang-format tools
is now performed in the file:
Utilities/ClangFormat/DownloadClangFormat.cmake

as an ExternalProject with the target of ClangFormat.

The option for ITK_USE_CLANG_FORMAT was duplicated in CMake/ITKModuleClangFormat.cmake

PR Checklist

The installation of the clang-format tools
is now performed in the file:
   Utilities/ClangFormat/DownloadClangFormat.cmake

as an ExternalProject with the target of ClangFormat.

The option for ITK_USE_CLANG_FORMAT was duplicated in
CMake/ITKModuleClangFormat.cmake
@hjmjohnson hjmjohnson added type:Compiler Compiler support or related warnings type:Style Style changes: no logic impact (indentation, comments, naming) labels Dec 3, 2024
@hjmjohnson hjmjohnson self-assigned this Dec 3, 2024
@github-actions github-actions bot added type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots type:Enhancement Improvement of existing methods or implementation and removed type:Compiler Compiler support or related warnings type:Style Style changes: no logic impact (indentation, comments, naming) labels Dec 3, 2024
@hjmjohnson hjmjohnson added this to the ITK 6.0 Beta 1 milestone Dec 3, 2024
@hjmjohnson
Copy link
Member Author

Local test confirmed that the download paths for clang-format identified in CMake/ITKClangFormatSetup.cmake did nothing, but the download paths from Utilities/ClangFormat/DownloadClangFormat.cmake were present and useful after build.

cmake -S /Users/johnsonhj/Dashboard/src/simplify-clang-format-setup -B cmake-build-test -DITK_USE_CLANG_FORMAT:BOOL=ON -DBUILD_TESTING:BOOL=ON

@dzenanz dzenanz requested review from blowekamp and thewtex December 3, 2024 21:47
@dzenanz
Copy link
Member

dzenanz commented Dec 3, 2024

Code change looks good, I have not tried running it locally.

@hjmjohnson
Copy link
Member Author

related to : #4565

@hjmjohnson hjmjohnson merged commit 6a704aa into InsightSoftwareConsortium:master Dec 4, 2024
17 checks passed
@hjmjohnson hjmjohnson deleted the simplify-clang-format-setup branch December 4, 2024 14:30
@hjmjohnson hjmjohnson restored the simplify-clang-format-setup branch February 4, 2025 23:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type:Enhancement Improvement of existing methods or implementation type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants