From 2611f4cb50f3a2ee8807fc5b618921c49205da5d Mon Sep 17 00:00:00 2001 From: "Hans J. Johnson" Date: Mon, 10 Nov 2025 13:47:13 -0600 Subject: [PATCH] STYLE: Update clang-format to match ITK 2025-11-10 --- .clang-format | 9 +++++---- include/itkMeshToPolyDataFilter.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.clang-format b/.clang-format index 45b9502..2fd9142 100644 --- a/.clang-format +++ b/.clang-format @@ -1,4 +1,4 @@ -## This config file is only relevant for clang-format version 19.1.4 +## This config file is only relevant for clang-format version 19.1.7 ## ## Examples of each format style can be found on the in the clang-format documentation ## See: https://clang.llvm.org/docs/ClangFormatStyleOptions.html for details of each option @@ -10,11 +10,11 @@ ## maintaining a consistent code style. ## ## EXAMPLE apply code style enforcement before commit: -# Utilities/Maintenance/clang-format.bash --clang ${PATH_TO_CLANG_FORMAT_19.1.4} --modified +# Utilities/Maintenance/clang-format.bash --clang ${PATH_TO_CLANG_FORMAT_19.1.7} --modified ## EXAMPLE apply code style enforcement after commit: -# Utilities/Maintenance/clang-format.bash --clang ${PATH_TO_CLANG_FORMAT_19.1.4} --last +# Utilities/Maintenance/clang-format.bash --clang ${PATH_TO_CLANG_FORMAT_19.1.7} --last --- -# This configuration requires clang-format version 19.1.4 exactly. +# This configuration requires clang-format version 19.1.7 exactly. Language: Cpp AccessModifierOffset: -2 AlignAfterOpenBracket: Align @@ -297,6 +297,7 @@ StatementMacros: - ITK_CLANG_PRAGMA_PUSH - ITK_CLANG_PRAGMA_POP - ITK_CLANG_SUPPRESS_Wzero_as_null_pointer_constant + - ITK_CLANG_SUPPRESS_Wduplicate_enum - CLANG_PRAGMA_PUSH - CLANG_PRAGMA_POP - CLANG_SUPPRESS_Wfloat_equal diff --git a/include/itkMeshToPolyDataFilter.h b/include/itkMeshToPolyDataFilter.h index b77e56f..ca17e8f 100644 --- a/include/itkMeshToPolyDataFilter.h +++ b/include/itkMeshToPolyDataFilter.h @@ -38,7 +38,7 @@ class HasCellTraits static No & test(...); // selected otherwise public: - static bool const value = sizeof(test(0)) == sizeof(Yes); + static const bool value = sizeof(test(0)) == sizeof(Yes); }; /** \class MeshToPolyDataFilter