diff --git a/Modules/Core/Common/include/itkImageSource.hxx b/Modules/Core/Common/include/itkImageSource.hxx index 69103c54044..2ba5afc3a4e 100644 --- a/Modules/Core/Common/include/itkImageSource.hxx +++ b/Modules/Core/Common/include/itkImageSource.hxx @@ -254,8 +254,8 @@ ImageSource::ThreadedGenerateData(const OutputImageRegionType & #if !defined(ITK_LEGACY_REMOVE) this->DynamicThreadedGenerateData(region); #else - itkExceptionMacro("With DynamicMultiThreadingOff subclass should override this method. \ -The signature of ThreadedGenerateData() has been changed in ITK v4 to use the new ThreadIdType."); + itkExceptionMacro("With DynamicMultiThreadingOff subclass should override this method. The signature of " + "ThreadedGenerateData() has been changed in ITK v4 to use the new ThreadIdType."); #endif } @@ -264,9 +264,9 @@ template void ImageSource::DynamicThreadedGenerateData(const OutputImageRegionType &) { - itkExceptionMacro("Subclass should override this method!!! \ -If old behavior is desired invoke this->DynamicMultiThreadingOff(); \ -before Update() is called. The best place is in class constructor."); + itkExceptionMacro( + "Subclass should override this method!!! If old behavior is desired invoke this->DynamicMultiThreadingOff(); " + "before Update() is called. The best place is in class constructor."); } // Callback routine used by the classic threading library. This routine just calls diff --git a/Modules/Core/Common/include/itkPlatformMultiThreader.h b/Modules/Core/Common/include/itkPlatformMultiThreader.h index 4de6e868d80..18dc6b601dc 100644 --- a/Modules/Core/Common/include/itkPlatformMultiThreader.h +++ b/Modules/Core/Common/include/itkPlatformMultiThreader.h @@ -72,16 +72,14 @@ class ITKCommon_EXPORT PlatformMultiThreader : public MultiThreaderBase * of threads was accepted. Legacy: use MultiThreaderBase to invoke these. */ itkLegacyMacro(static void SetGlobalMaximumNumberOfThreads(ThreadIdType val)) { - itkGenericOutputMacro("Warning: SetGlobalMaximumNumberOfThreads \ -should now be called on itk::MultiThreaderBase. \ -It can affect all MultiThreaderBase's derived classes in ITK"); + itkGenericOutputMacro("Warning: SetGlobalMaximumNumberOfThreads should now be called on itk::MultiThreaderBase. It " + "can affect all MultiThreaderBase's derived classes in ITK"); Superclass::SetGlobalMaximumNumberOfThreads(val); } itkLegacyMacro(static ThreadIdType GetGlobalMaximumNumberOfThreads()) { - itkGenericOutputMacro("Warning: GetGlobalMaximumNumberOfThreads \ -should now be called on itk::MultiThreaderBase. \ -It can affect all MultiThreaderBase's derived classes in ITK"); + itkGenericOutputMacro("Warning: GetGlobalMaximumNumberOfThreads should now be called on itk::MultiThreaderBase. It " + "can affect all MultiThreaderBase's derived classes in ITK"); return Superclass::GetGlobalMaximumNumberOfThreads(); } @@ -91,16 +89,14 @@ It can affect all MultiThreaderBase's derived classes in ITK"); * of threads was accepted. Legacy: use MultiThreaderBase to invoke these. */ itkLegacyMacro(static void SetGlobalDefaultNumberOfThreads(ThreadIdType val)) { - itkGenericOutputMacro("Warning: SetGlobalDefaultNumberOfThreads \ -should now be called on itk::MultiThreaderBase. \ -It can affect all MultiThreaderBase's derived classes in ITK"); + itkGenericOutputMacro("Warning: SetGlobalDefaultNumberOfThreads should now be called on itk::MultiThreaderBase. It " + "can affect all MultiThreaderBase's derived classes in ITK"); Superclass::SetGlobalDefaultNumberOfThreads(val); } itkLegacyMacro(static ThreadIdType GetGlobalDefaultNumberOfThreads()) { - itkGenericOutputMacro("Warning: GetGlobalDefaultNumberOfThreads \ -should now be called on itk::MultiThreaderBase. \ -It can affect all MultiThreaderBase's derived classes in ITK"); + itkGenericOutputMacro("Warning: GetGlobalDefaultNumberOfThreads should now be called on itk::MultiThreaderBase. It " + "can affect all MultiThreaderBase's derived classes in ITK"); return Superclass::GetGlobalDefaultNumberOfThreads(); } #endif diff --git a/Modules/Core/Common/include/itkVersor.hxx b/Modules/Core/Common/include/itkVersor.hxx index d23c817a9f4..4289145e4e5 100644 --- a/Modules/Core/Common/include/itkVersor.hxx +++ b/Modules/Core/Common/include/itkVersor.hxx @@ -209,8 +209,7 @@ Versor::Normalize() if (itk::Math::abs(tensor) < 1e-20) { ExceptionObject except; - except.SetDescription("Attempt to normalize a \ - itk::Versor with zero tensor"); + except.SetDescription("Attempt to normalize a itk::Versor with zero tensor"); except.SetLocation(__FILE__); throw except; } diff --git a/Modules/Core/Common/src/itkMultiThreaderBase.cxx b/Modules/Core/Common/src/itkMultiThreaderBase.cxx index 0a2629232bf..fdf2eaa05bf 100644 --- a/Modules/Core/Common/src/itkMultiThreaderBase.cxx +++ b/Modules/Core/Common/src/itkMultiThreaderBase.cxx @@ -152,10 +152,8 @@ MultiThreaderBase::GetGlobalDefaultThreaderPrivate() itksys::SystemTools::GetEnv("ITK_USE_THREADPOOL", envVar)) { envVar = itksys::SystemTools::UpperCase(envVar); - itkGenericOutputMacro("Warning: ITK_USE_THREADPOOL \ -has been deprecated since ITK v5.0. \ -You should now use ITK_GLOBAL_DEFAULT_THREADER\ -\nFor example ITK_GLOBAL_DEFAULT_THREADER=Pool"); + itkGenericOutputMacro("Warning: ITK_USE_THREADPOOL has been deprecated since ITK v5.0. You should now use " + "ITK_GLOBAL_DEFAULT_THREADER\nFor example ITK_GLOBAL_DEFAULT_THREADER=Pool"); if (envVar != "NO" && envVar != "OFF" && envVar != "FALSE") { #ifdef __EMSCRIPTEN__ diff --git a/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshEulerOperatorDeleteCenterVertexFunction.hxx b/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshEulerOperatorDeleteCenterVertexFunction.hxx index 401a8cbde92..dcb104b53c7 100644 --- a/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshEulerOperatorDeleteCenterVertexFunction.hxx +++ b/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshEulerOperatorDeleteCenterVertexFunction.hxx @@ -83,8 +83,8 @@ QuadEdgeMeshEulerOperatorDeleteCenterVertexFunction::Evaluate(QE } if (!SecondFaceFound) { - itkDebugMacro("DeleteVertex requires at least two distinct \ - facets incident to the facets that are incident to g->GetDestination()."); + itkDebugMacro("DeleteVertex requires at least two distinct facets incident to the facets that are incident to " + "g->GetDestination()."); return ((QEType *)nullptr); } diff --git a/Modules/Numerics/Statistics/include/itkDistanceMetric.h b/Modules/Numerics/Statistics/include/itkDistanceMetric.h index dc0c82dbdd6..5d0ddab0c27 100644 --- a/Modules/Numerics/Statistics/include/itkDistanceMetric.h +++ b/Modules/Numerics/Statistics/include/itkDistanceMetric.h @@ -119,8 +119,7 @@ class ITK_TEMPLATE_EXPORT DistanceMetric : public FunctionBase // exception if (defaultLength != s) { - itkExceptionMacro("Attempting to change the measurement \ - vector size of a non-resizable vector type"); + itkExceptionMacro("Attempting to change the measurement vector size of a non-resizable vector type"); } } } diff --git a/Modules/Numerics/Statistics/include/itkImageClassifierFilter.hxx b/Modules/Numerics/Statistics/include/itkImageClassifierFilter.hxx index 1e8d6470e40..22fc9ef2784 100644 --- a/Modules/Numerics/Statistics/include/itkImageClassifierFilter.hxx +++ b/Modules/Numerics/Statistics/include/itkImageClassifierFilter.hxx @@ -138,8 +138,7 @@ ImageClassifierFilter::GenerateData() if (membershipFunctionsWeightsArray.Size() != this->m_NumberOfClasses) { - itkExceptionMacro("Membership functions weight array size does not match the\ - number of classes "); + itkExceptionMacro("Membership functions weight array size does not match the number of classes "); } const auto * inputImage = static_cast(this->ProcessObject::GetInput(0)); diff --git a/Modules/Numerics/Statistics/include/itkSample.h b/Modules/Numerics/Statistics/include/itkSample.h index 4f6864c8fb0..edefcc73cae 100644 --- a/Modules/Numerics/Statistics/include/itkSample.h +++ b/Modules/Numerics/Statistics/include/itkSample.h @@ -131,8 +131,7 @@ class Sample : public DataObject // only change the measurement vector size if the container is empty. if (this->Size()) { - itkExceptionMacro("Attempting to change the measurement \ - vector size of a non-empty Sample"); + itkExceptionMacro("Attempting to change the measurement vector size of a non-empty Sample"); } else { @@ -149,8 +148,7 @@ class Sample : public DataObject // exception if (defaultLength != s) { - itkExceptionMacro("Attempting to change the measurement \ - vector size of a non-resizable vector type"); + itkExceptionMacro("Attempting to change the measurement vector size of a non-resizable vector type"); } } } diff --git a/Modules/Numerics/Statistics/include/itkSampleClassifierFilter.hxx b/Modules/Numerics/Statistics/include/itkSampleClassifierFilter.hxx index de6cc0a9660..9a8e76ffac2 100644 --- a/Modules/Numerics/Statistics/include/itkSampleClassifierFilter.hxx +++ b/Modules/Numerics/Statistics/include/itkSampleClassifierFilter.hxx @@ -142,8 +142,7 @@ SampleClassifierFilter::GenerateData() if (membershipFunctionsWeightsArray.Size() != this->m_NumberOfClasses) { - itkExceptionMacro("Membership functions weight array size does not match the\ - number of classes "); + itkExceptionMacro("Membership functions weight array size does not match the number of classes "); } const auto * sample = static_cast(this->ProcessObject::GetInput(0)); diff --git a/Modules/Numerics/Statistics/include/itkStatisticsAlgorithm.hxx b/Modules/Numerics/Statistics/include/itkStatisticsAlgorithm.hxx index 847b173df55..cf31f8808dd 100644 --- a/Modules/Numerics/Statistics/include/itkStatisticsAlgorithm.hxx +++ b/Modules/Numerics/Statistics/include/itkStatisticsAlgorithm.hxx @@ -260,8 +260,7 @@ FindSampleBound(const TSample * sample, if (sample->Size() == 0) { - itkGenericExceptionMacro(<< "Attempting to compute bounds of a sample list containing no\ - measurement vectors"); + itkGenericExceptionMacro(<< "Attempting to compute bounds of a sample list containing no measurement vectors"); } min = begin.GetMeasurementVector(); diff --git a/Modules/Registration/Common/include/itkCompareHistogramImageToImageMetric.hxx b/Modules/Registration/Common/include/itkCompareHistogramImageToImageMetric.hxx index 2900d6fc02e..acdf8f56ca0 100644 --- a/Modules/Registration/Common/include/itkCompareHistogramImageToImageMetric.hxx +++ b/Modules/Registration/Common/include/itkCompareHistogramImageToImageMetric.hxx @@ -138,8 +138,7 @@ CompareHistogramImageToImageMetric::FormTrainingHisto if (NumberOfPixelsCounted == 0) { - itkExceptionMacro(<< "All the points mapped to outside of the Training moving \ -age"); + itkExceptionMacro(<< "All the points mapped to outside of the Training moving age"); } }