diff --git a/Modules/Core/Common/include/itkSimpleFilterWatcher.h b/Modules/Core/Common/include/itkSimpleFilterWatcher.h
index 91a803f7b3c..bf28d7e95d4 100644
--- a/Modules/Core/Common/include/itkSimpleFilterWatcher.h
+++ b/Modules/Core/Common/include/itkSimpleFilterWatcher.h
@@ -262,8 +262,8 @@ class ITKCommon_EXPORT SimpleFilterWatcher
EndFilter()
{
m_TimeProbe.Stop();
- std::cout << std::endl << "Filter took " << m_TimeProbe.GetMean() << " seconds.";
std::cout << std::endl
+ << "Filter took " << m_TimeProbe.GetMean() << " seconds." << std::endl
<< "-------- End " << (m_Process.GetPointer() ? m_Process->GetNameOfClass() : "None") << " \""
<< m_Comment << "\" " << std::endl;
if (!m_Quiet)
diff --git a/Modules/Core/Common/src/itkXMLFilterWatcher.cxx b/Modules/Core/Common/src/itkXMLFilterWatcher.cxx
index a43d42df6df..b0f6e2e18f5 100644
--- a/Modules/Core/Common/src/itkXMLFilterWatcher.cxx
+++ b/Modules/Core/Common/src/itkXMLFilterWatcher.cxx
@@ -29,8 +29,8 @@ XMLFilterWatcher::ShowProgress()
this->SetSteps(steps);
if (!this->GetQuiet())
{
- std::cout << "" << this->GetProcess()->GetProgress() << "" << std::endl;
- std::cout << std::flush;
+ std::cout << "" << this->GetProcess()->GetProgress() << "" << std::endl
+ << std::flush;
}
}
}
@@ -43,14 +43,13 @@ XMLFilterWatcher::StartFilter()
this->GetTimeProbe().Start();
if (!this->GetQuiet())
{
- std::cout << "" << std::endl;
- std::cout << "" << (this->GetProcess() ? this->GetProcess()->GetNameOfClass() : "None")
+ std::cout << "" << std::endl
+ << "" << (this->GetProcess() ? this->GetProcess()->GetNameOfClass() : "None")
<< "" << std::endl;
std::cout << ""
<< " \"" << this->GetComment() << "\" "
<< "" << std::endl;
- std::cout << "" << std::endl;
- std::cout << std::flush;
+ std::cout << "" << std::endl << std::flush;
}
}
diff --git a/Modules/Core/GPUCommon/include/itkGPUReduction.hxx b/Modules/Core/GPUCommon/include/itkGPUReduction.hxx
index b7f69cc0cd2..fb76828ba68 100644
--- a/Modules/Core/GPUCommon/include/itkGPUReduction.hxx
+++ b/Modules/Core/GPUCommon/include/itkGPUReduction.hxx
@@ -119,8 +119,7 @@ GPUReduction::GetReductionKernel(int whichKernel, int blockSize, int i
std::ostringstream defines;
- defines << "#define blockSize " << blockSize << std::endl;
- defines << "#define nIsPow2 " << isPowOf2 << std::endl;
+ defines << "#define blockSize " << blockSize << std::endl << "#define nIsPow2 " << isPowOf2 << std::endl;
defines << "#define T ";
GetTypenameInString(typeid(TElement), defines);
diff --git a/Modules/Core/GPUCommon/src/itkOpenCLUtil.cxx b/Modules/Core/GPUCommon/src/itkOpenCLUtil.cxx
index b9f937bd506..1a37e5b2ead 100644
--- a/Modules/Core/GPUCommon/src/itkOpenCLUtil.cxx
+++ b/Modules/Core/GPUCommon/src/itkOpenCLUtil.cxx
@@ -455,8 +455,8 @@ std::string
Get64BitPragma()
{
std::ostringstream msg;
- msg << "#pragma OPENCL EXTENSION cl_khr_fp64 : enable\n";
- msg << "#pragma OPENCL EXTENSION cl_amd_fp64 : enable\n";
+ msg << "#pragma OPENCL EXTENSION cl_khr_fp64 : enable\n"
+ << "#pragma OPENCL EXTENSION cl_amd_fp64 : enable\n";
return msg.str();
}
diff --git a/Modules/Core/Mesh/include/itkVTKPolyDataWriter.hxx b/Modules/Core/Mesh/include/itkVTKPolyDataWriter.hxx
index afa4f750851..3b1daaa9f69 100644
--- a/Modules/Core/Mesh/include/itkVTKPolyDataWriter.hxx
+++ b/Modules/Core/Mesh/include/itkVTKPolyDataWriter.hxx
@@ -86,10 +86,10 @@ VTKPolyDataWriter::GenerateData()
}
outputFile.imbue(std::locale::classic());
- outputFile << "# vtk DataFile Version 2.0" << std::endl;
- outputFile << "File written by itkVTKPolyDataWriter" << std::endl;
- outputFile << "ASCII" << std::endl;
- outputFile << "DATASET POLYDATA" << std::endl;
+ outputFile << "# vtk DataFile Version 2.0" << std::endl
+ << "File written by itkVTKPolyDataWriter" << std::endl
+ << "ASCII" << std::endl
+ << "DATASET POLYDATA" << std::endl;
// POINTS go first
@@ -171,8 +171,7 @@ VTKPolyDataWriter::GenerateData()
// LINES
if (numberOfEdges)
{
- outputFile << "LINES " << numberOfEdges << " " << 3 * numberOfEdges;
- outputFile << std::endl;
+ outputFile << "LINES " << numberOfEdges << " " << 3 * numberOfEdges << std::endl;
cellIterator = cells->Begin();
while (cellIterator != cellEnd)
@@ -219,8 +218,8 @@ VTKPolyDataWriter::GenerateData()
}
++cellIterator;
}
- outputFile << "POLYGONS " << numberOfPolygons << " ";
- outputFile << totalNumberOfPointsInPolygons + numberOfPolygons; // FIXME: Is this right ?
+ outputFile << "POLYGONS " << numberOfPolygons << " "
+ << totalNumberOfPointsInPolygons + numberOfPolygons; // FIXME: Is this right ?
outputFile << std::endl;
cellIterator = cells->Begin();
diff --git a/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshScalarDataVTKPolyDataWriter.hxx b/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshScalarDataVTKPolyDataWriter.hxx
index 5ea36283b16..9b7dff4ab69 100644
--- a/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshScalarDataVTKPolyDataWriter.hxx
+++ b/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshScalarDataVTKPolyDataWriter.hxx
@@ -52,8 +52,7 @@ QuadEdgeMeshScalarDataVTKPolyDataWriter::WriteCellData()
{
std::ofstream outputFile(this->m_FileName.c_str(), std::ios_base::app);
- outputFile << "CELL_DATA " << this->m_Input->GetNumberOfFaces() << std::endl;
- outputFile << "SCALARS ";
+ outputFile << "CELL_DATA " << this->m_Input->GetNumberOfFaces() << std::endl << "SCALARS ";
if (!m_CellDataName.empty())
{
@@ -104,8 +103,7 @@ QuadEdgeMeshScalarDataVTKPolyDataWriter::WritePointData()
{
std::ofstream outputFile(this->m_FileName.c_str(), std::ios_base::app);
- outputFile << "POINT_DATA " << this->m_Input->GetNumberOfPoints() << std::endl;
- outputFile << "SCALARS ";
+ outputFile << "POINT_DATA " << this->m_Input->GetNumberOfPoints() << std::endl << "SCALARS ";
if (!m_PointDataName.empty())
{
diff --git a/Modules/Core/SpatialObjects/include/itkSpatialObject.hxx b/Modules/Core/SpatialObjects/include/itkSpatialObject.hxx
index f8679aa64c3..68c81ffa2ad 100644
--- a/Modules/Core/SpatialObjects/include/itkSpatialObject.hxx
+++ b/Modules/Core/SpatialObjects/include/itkSpatialObject.hxx
@@ -1305,9 +1305,7 @@ SpatialObject::GetClassNameAndDimension() const
{
std::ostringstream n;
- n << GetNameOfClass();
- n << "_";
- n << TDimension;
+ n << GetNameOfClass() << "_" << TDimension;
return n.str();
}
diff --git a/Modules/Core/SpatialObjects/include/itkSurfaceSpatialObject.hxx b/Modules/Core/SpatialObjects/include/itkSurfaceSpatialObject.hxx
index 1dac77da7e1..5d925289229 100644
--- a/Modules/Core/SpatialObjects/include/itkSurfaceSpatialObject.hxx
+++ b/Modules/Core/SpatialObjects/include/itkSurfaceSpatialObject.hxx
@@ -196,9 +196,9 @@ SurfaceSpatialObject::ComputeNormals()
if ((identifier[0] == identifier[1]) || (identifier[1] == identifier[2]) || (identifier[0] == identifier[2]))
{
- std::cout << "Cannot find 3 distinct points!" << std::endl;
- std::cout << identifier[0] << " : " << identifier[1] << " : " << identifier[2] << std::endl;
- std::cout << max[0] << " : " << max[1] << " : " << max[2] << std::endl;
+ std::cout << "Cannot find 3 distinct points!" << std::endl
+ << identifier[0] << " : " << identifier[1] << " : " << identifier[2] << std::endl
+ << max[0] << " : " << max[1] << " : " << max[2] << std::endl;
return false;
}
@@ -250,9 +250,9 @@ SurfaceSpatialObject::ComputeNormals()
if (Math::AlmostEquals(absvec, 0.0))
{
- std::cout << "ComputeNormals Failed!" << std::endl;
- std::cout << identifier[0] << " : " << identifier[1] << " : " << identifier[2] << std::endl;
- std::cout << badId.size() << " : " << this->m_Points.size() - 1 << std::endl;
+ std::cout << "ComputeNormals Failed!" << std::endl
+ << identifier[0] << " : " << identifier[1] << " : " << identifier[2] << std::endl
+ << badId.size() << " : " << this->m_Points.size() - 1 << std::endl;
return false;
}
diff --git a/Modules/Core/SpatialObjects/include/itkTubeSpatialObject.hxx b/Modules/Core/SpatialObjects/include/itkTubeSpatialObject.hxx
index 8372768f706..190996e9b90 100644
--- a/Modules/Core/SpatialObjects/include/itkTubeSpatialObject.hxx
+++ b/Modules/Core/SpatialObjects/include/itkTubeSpatialObject.hxx
@@ -383,12 +383,12 @@ TubeSpatialObject::ComputeTangentsAndNormals()
// RemoveDuplicatePointsInObjectSpace was not called.
if (Math::AlmostEquals(l, 0.0) || std::isnan(l))
{
- std::cerr << "TubeSpatialObject::ComputeTangentAndNormals() : ";
- std::cerr << "length between two consecutive points is 0";
- std::cerr << " (use RemoveDuplicatePointsInObjectSpace())" << std::endl;
- std::cerr << " p1 = " << x1 << std::endl;
- std::cerr << " p2 = " << x2 << std::endl;
- std::cerr << " p3 = " << x3 << std::endl;
+ std::cerr << "TubeSpatialObject::ComputeTangentAndNormals() : "
+ << "length between two consecutive points is 0"
+ << " (use RemoveDuplicatePointsInObjectSpace())" << std::endl
+ << " p1 = " << x1 << std::endl
+ << " p2 = " << x2 << std::endl
+ << " p3 = " << x3 << std::endl;
return false;
}
}
diff --git a/Modules/Core/Transform/include/itkTransform.hxx b/Modules/Core/Transform/include/itkTransform.hxx
index 77aadc732fb..3015bbbba99 100644
--- a/Modules/Core/Transform/include/itkTransform.hxx
+++ b/Modules/Core/Transform/include/itkTransform.hxx
@@ -38,10 +38,8 @@ Transform::GetTransform
{
std::ostringstream n;
- n << GetNameOfClass();
- n << "_";
- n << this->GetTransformTypeAsString(static_cast(nullptr));
- n << "_" << this->GetInputSpaceDimension() << "_" << this->GetOutputSpaceDimension();
+ n << GetNameOfClass() << "_" << this->GetTransformTypeAsString(static_cast(nullptr)) << "_"
+ << this->GetInputSpaceDimension() << "_" << this->GetOutputSpaceDimension();
return n.str();
}
diff --git a/Modules/Filtering/GPUAnisotropicSmoothing/include/itkGPUGradientNDAnisotropicDiffusionFunction.hxx b/Modules/Filtering/GPUAnisotropicSmoothing/include/itkGPUGradientNDAnisotropicDiffusionFunction.hxx
index c7810ad303a..27161a05cf6 100644
--- a/Modules/Filtering/GPUAnisotropicSmoothing/include/itkGPUGradientNDAnisotropicDiffusionFunction.hxx
+++ b/Modules/Filtering/GPUAnisotropicSmoothing/include/itkGPUGradientNDAnisotropicDiffusionFunction.hxx
@@ -83,8 +83,8 @@ GPUGradientNDAnisotropicDiffusionFunction::GPUGradientNDAnisotropicDiffu
itkExceptionMacro("GPUGradientNDAnisotropicDiffusionFunction supports 1/2/3D image.");
}
- defines << "#define DIM_" << TImage::ImageDimension << "\n";
- defines << "#define BLOCK_SIZE " << OpenCLGetLocalBlockSize(TImage::ImageDimension) << "\n";
+ defines << "#define DIM_" << TImage::ImageDimension << "\n"
+ << "#define BLOCK_SIZE " << OpenCLGetLocalBlockSize(TImage::ImageDimension) << "\n";
std::string pixeltypename = GetTypename(typeid(typename TImage::PixelType));
defines << "#define PIXELTYPE " << pixeltypename << "\n";
diff --git a/Modules/Filtering/GPUImageFilterBase/include/itkGPUCastImageFilter.hxx b/Modules/Filtering/GPUImageFilterBase/include/itkGPUCastImageFilter.hxx
index ada31418b7a..de14a35521b 100644
--- a/Modules/Filtering/GPUImageFilterBase/include/itkGPUCastImageFilter.hxx
+++ b/Modules/Filtering/GPUImageFilterBase/include/itkGPUCastImageFilter.hxx
@@ -33,8 +33,8 @@ GPUCastImageFilter::GPUCastImageFilter()
itkExceptionMacro("GPUCastImageFilter supports 1/2/3D image.");
}
- defines << "#define DIM_" << TInputImage::ImageDimension << "\n";
- defines << "#define INPIXELTYPE ";
+ defines << "#define DIM_" << TInputImage::ImageDimension << "\n"
+ << "#define INPIXELTYPE ";
GetTypenameInString(typeid(typename TInputImage::PixelType), defines);
defines << "#define OUTPIXELTYPE ";
GetTypenameInString(typeid(typename TOutputImage::PixelType), defines);
diff --git a/Modules/Filtering/GPUSmoothing/include/itkGPUMeanImageFilter.hxx b/Modules/Filtering/GPUSmoothing/include/itkGPUMeanImageFilter.hxx
index 421afe71bfb..041c8f66c66 100644
--- a/Modules/Filtering/GPUSmoothing/include/itkGPUMeanImageFilter.hxx
+++ b/Modules/Filtering/GPUSmoothing/include/itkGPUMeanImageFilter.hxx
@@ -32,8 +32,8 @@ GPUMeanImageFilter::GPUMeanImageFilter()
itkExceptionMacro("GPUMeanImageFilter supports 1/2/3D image.");
}
- defines << "#define DIM_" << TInputImage::ImageDimension << "\n";
- defines << "#define PIXELTYPE ";
+ defines << "#define DIM_" << TInputImage::ImageDimension << "\n"
+ << "#define PIXELTYPE ";
GetTypenameInString(typeid(typename TInputImage::PixelType), defines);
const char * GPUSource = GPUMeanImageFilter::GetOpenCLSource();
diff --git a/Modules/Filtering/GPUThresholding/include/itkGPUBinaryThresholdImageFilter.hxx b/Modules/Filtering/GPUThresholding/include/itkGPUBinaryThresholdImageFilter.hxx
index df26772963a..33bc17f570c 100644
--- a/Modules/Filtering/GPUThresholding/include/itkGPUBinaryThresholdImageFilter.hxx
+++ b/Modules/Filtering/GPUThresholding/include/itkGPUBinaryThresholdImageFilter.hxx
@@ -49,8 +49,8 @@ GPUBinaryThresholdImageFilter::GPUBinaryThresholdImag
bool isValid = GetValidTypename(typeid(typename TInputImage::PixelType), validTypes, validTypeName);
if (isValid)
{
- defines << "#define InPixelType " << validTypeName << "\n";
- defines << "#define OutPixelType " << validTypeName << "\n";
+ defines << "#define InPixelType " << validTypeName << "\n"
+ << "#define OutPixelType " << validTypeName << "\n";
#ifdef __APPLE__
// This is to work around a bug in the OpenCL compiler on Mac OS 10.6 and 10.7 with NVidia drivers
// where the compiler was not handling unsigned char arguments correctly.
@@ -59,17 +59,17 @@ GPUBinaryThresholdImageFilter::GPUBinaryThresholdImag
// is a known workaround to this problem.
if (validTypeName == "unsigned char")
{
- defines << "#define InArgType unsigned short\n";
- defines << "#define OutArgType unsigned short\n";
+ defines << "#define InArgType unsigned short\n"
+ << "#define OutArgType unsigned short\n";
}
else
{
- defines << "#define InArgType " << validTypeName << "\n";
- defines << "#define OutArgType " << validTypeName << "\n";
+ defines << "#define InArgType " << validTypeName << "\n"
+ << "#define OutArgType " << validTypeName << "\n";
}
#else
- defines << "#define InArgType " << validTypeName << "\n";
- defines << "#define OutArgType " << validTypeName << "\n";
+ defines << "#define InArgType " << validTypeName << "\n"
+ << "#define OutArgType " << validTypeName << "\n";
#endif
}
else
diff --git a/Modules/IO/CSV/include/itkCSVNumericObjectFileWriter.hxx b/Modules/IO/CSV/include/itkCSVNumericObjectFileWriter.hxx
index b69b648f66c..dd414aca70e 100644
--- a/Modules/IO/CSV/include/itkCSVNumericObjectFileWriter.hxx
+++ b/Modules/IO/CSV/include/itkCSVNumericObjectFileWriter.hxx
@@ -180,8 +180,7 @@ CSVNumericObjectFileWriter::Write()
}
catch (const itk::ExceptionObject & exp)
{
- std::cerr << "Exception caught! " << std::endl;
- std::cerr << exp << std::endl;
+ std::cerr << "Exception caught! " << std::endl << exp << std::endl;
outputStream.close();
throw;
}
diff --git a/Modules/IO/ImageBase/include/itkImageFileReader.hxx b/Modules/IO/ImageBase/include/itkImageFileReader.hxx
index 79b01dc7aa8..cf3d3c199f2 100644
--- a/Modules/IO/ImageBase/include/itkImageFileReader.hxx
+++ b/Modules/IO/ImageBase/include/itkImageFileReader.hxx
@@ -119,13 +119,13 @@ ImageFileReader::GenerateOutputInformation()
auto * io = dynamic_cast(allobject.GetPointer());
msg << " " << io->GetNameOfClass() << std::endl;
}
- msg << " You probably failed to set a file suffix, or" << std::endl;
- msg << " set the suffix to an unsupported type." << std::endl;
+ msg << " You probably failed to set a file suffix, or" << std::endl
+ << " set the suffix to an unsupported type." << std::endl;
}
else
{
- msg << " There are no registered IO factories." << std::endl;
- msg << " Please visit https://www.itk.org/Wiki/ITK/FAQ#NoFactoryException to diagnose the problem."
+ msg << " There are no registered IO factories." << std::endl
+ << " Please visit https://www.itk.org/Wiki/ITK/FAQ#NoFactoryException to diagnose the problem."
<< std::endl;
}
}
diff --git a/Modules/IO/ImageBase/include/itkImageFileWriter.hxx b/Modules/IO/ImageBase/include/itkImageFileWriter.hxx
index acd9253fc29..87911f77ef8 100644
--- a/Modules/IO/ImageBase/include/itkImageFileWriter.hxx
+++ b/Modules/IO/ImageBase/include/itkImageFileWriter.hxx
@@ -126,13 +126,13 @@ ImageFileWriter::Write()
auto * io = dynamic_cast(allobject.GetPointer());
msg << " " << io->GetNameOfClass() << std::endl;
}
- msg << " You probably failed to set a file suffix, or" << std::endl;
- msg << " set the suffix to an unsupported type." << std::endl;
+ msg << " You probably failed to set a file suffix, or" << std::endl
+ << " set the suffix to an unsupported type." << std::endl;
}
else
{
- msg << " There are no registered IO factories." << std::endl;
- msg << " Please visit https://www.itk.org/Wiki/ITK/FAQ#NoFactoryException to diagnose the problem." << std::endl;
+ msg << " There are no registered IO factories." << std::endl
+ << " Please visit https://www.itk.org/Wiki/ITK/FAQ#NoFactoryException to diagnose the problem." << std::endl;
}
e.SetDescription(msg.str().c_str());
e.SetLocation(ITK_LOCATION);
@@ -365,11 +365,10 @@ ImageFileWriter::GenerateData()
{
ImageFileWriterException e(__FILE__, __LINE__);
std::ostringstream msg;
- msg << "Did not get requested region!" << std::endl;
- msg << "Requested:" << std::endl;
- msg << ioRegion;
- msg << "Actual:" << std::endl;
- msg << bufferedRegion;
+ msg << "Did not get requested region!" << std::endl
+ << "Requested:" << std::endl
+ << ioRegion << "Actual:" << std::endl
+ << bufferedRegion;
e.SetDescription(msg.str().c_str());
e.SetLocation(ITK_LOCATION);
throw e;
diff --git a/Modules/IO/JPEG2000/src/itkJPEG2000ImageIO.cxx b/Modules/IO/JPEG2000/src/itkJPEG2000ImageIO.cxx
index 699719bc90a..4475a396308 100644
--- a/Modules/IO/JPEG2000/src/itkJPEG2000ImageIO.cxx
+++ b/Modules/IO/JPEG2000/src/itkJPEG2000ImageIO.cxx
@@ -780,8 +780,8 @@ JPEG2000ImageIO::Write(const void * buffer)
{
// TODO should this be and excpetion? can we continue loading
// and expect good results
- std::cerr << "Unrecognized progression order in option -P (POC n " << i + 1;
- std::cerr << ") [LRCP, RLCP, RPCL, PCRL, CPRL] !!" << std::endl;
+ std::cerr << "Unrecognized progression order in option -P (POC n " << i + 1
+ << ") [LRCP, RLCP, RPCL, PCRL, CPRL] !!" << std::endl;
}
}
diff --git a/Modules/IO/MeshBYU/src/itkBYUMeshIO.cxx b/Modules/IO/MeshBYU/src/itkBYUMeshIO.cxx
index f4f8e74ac8f..46e2e5a9b61 100644
--- a/Modules/IO/MeshBYU/src/itkBYUMeshIO.cxx
+++ b/Modules/IO/MeshBYU/src/itkBYUMeshIO.cxx
@@ -298,12 +298,9 @@ BYUMeshIO::WriteMeshInformation()
// Write BYU file header
Indent indent(7);
- outputFile << indent << 1;
- outputFile << indent << this->m_NumberOfPoints;
- outputFile << indent << this->m_NumberOfCells;
- outputFile << indent << this->m_CellBufferSize - 2 * this->m_NumberOfCells << std::endl;
- outputFile << indent << 1;
- outputFile << indent << this->m_NumberOfCells << std::endl;
+ outputFile << indent << 1 << indent << this->m_NumberOfPoints << indent << this->m_NumberOfCells << indent
+ << this->m_CellBufferSize - 2 * this->m_NumberOfCells << std::endl
+ << indent << 1 << indent << this->m_NumberOfCells << std::endl;
outputFile.close();
}
diff --git a/Modules/IO/MeshBase/include/itkMeshFileReader.hxx b/Modules/IO/MeshBase/include/itkMeshFileReader.hxx
index 5fc54284b19..d73a956381d 100644
--- a/Modules/IO/MeshBase/include/itkMeshFileReader.hxx
+++ b/Modules/IO/MeshBase/include/itkMeshFileReader.hxx
@@ -463,8 +463,8 @@ MeshFileReader::Ge
auto * io = dynamic_cast(allobject.GetPointer());
msg << " " << io->GetNameOfClass() << std::endl;
}
- msg << " You probably failed to set a file suffix, or" << std::endl;
- msg << " set the suffix to an unsupported type." << std::endl;
+ msg << " You probably failed to set a file suffix, or" << std::endl
+ << " set the suffix to an unsupported type." << std::endl;
}
MeshFileReaderException e(__FILE__, __LINE__, msg.str().c_str(), ITK_LOCATION);
diff --git a/Modules/IO/MeshBase/include/itkMeshFileWriter.hxx b/Modules/IO/MeshBase/include/itkMeshFileWriter.hxx
index 21949d43f2c..108e599c0cd 100644
--- a/Modules/IO/MeshBase/include/itkMeshFileWriter.hxx
+++ b/Modules/IO/MeshBase/include/itkMeshFileWriter.hxx
@@ -111,8 +111,8 @@ MeshFileWriter::Write()
{
MeshFileWriterException e(__FILE__, __LINE__);
std::ostringstream msg;
- msg << " Could not create IO object for file " << m_FileName.c_str() << std::endl;
- msg << " Tried to create one of the following:" << std::endl;
+ msg << " Could not create IO object for file " << m_FileName.c_str() << std::endl
+ << " Tried to create one of the following:" << std::endl;
{
for (auto & allobject : ObjectFactoryBase::CreateAllInstance("itkMeshIOBase"))
{
@@ -121,8 +121,8 @@ MeshFileWriter::Write()
}
}
- msg << " You probably failed to set a file suffix, or" << std::endl;
- msg << " set the suffix to an unsupported type." << std::endl;
+ msg << " You probably failed to set a file suffix, or" << std::endl
+ << " set the suffix to an unsupported type." << std::endl;
e.SetDescription(msg.str().c_str());
e.SetLocation(ITK_LOCATION);
throw e;
diff --git a/Modules/IO/MeshOBJ/src/itkOBJMeshIO.cxx b/Modules/IO/MeshOBJ/src/itkOBJMeshIO.cxx
index 1464cb52f5e..76956f25704 100644
--- a/Modules/IO/MeshOBJ/src/itkOBJMeshIO.cxx
+++ b/Modules/IO/MeshOBJ/src/itkOBJMeshIO.cxx
@@ -363,8 +363,8 @@ OBJMeshIO::WriteMeshInformation()
outputFile << "# OBJ file generated by ITK\n";
// Write the number of points and number of cells
- outputFile << "# Number of points " << this->m_NumberOfPoints << "\n";
- outputFile << "# Number of cells " << this->m_NumberOfCells << "\n";
+ outputFile << "# Number of points " << this->m_NumberOfPoints << "\n"
+ << "# Number of cells " << this->m_NumberOfCells << "\n";
outputFile.close();
}
diff --git a/Modules/IO/MeshVTK/include/itkVTKPolyDataMeshIO.h b/Modules/IO/MeshVTK/include/itkVTKPolyDataMeshIO.h
index 93c7cd3a53e..2579eafb3f4 100644
--- a/Modules/IO/MeshVTK/include/itkVTKPolyDataMeshIO.h
+++ b/Modules/IO/MeshVTK/include/itkVTKPolyDataMeshIO.h
@@ -449,8 +449,7 @@ class ITKIOMeshVTK_EXPORT VTKPolyDataMeshIO : public MeshIOBase
WritePointsBufferAsBINARY(std::ofstream & outputFile, T * buffer, const StringType & pointComponentType)
{
/** 1. Write number of points */
- outputFile << "POINTS " << this->m_NumberOfPoints;
- outputFile << pointComponentType << "\n";
+ outputFile << "POINTS " << this->m_NumberOfPoints << pointComponentType << "\n";
itk::ByteSwapper::SwapWriteRangeFromSystemToBigEndian(
buffer, this->m_NumberOfPoints * this->m_PointDimension, &outputFile);
outputFile << "\n";
@@ -748,12 +747,10 @@ class ITKIOMeshVTK_EXPORT VTKPolyDataMeshIO : public MeshIOBase
// row 1
outputFile << ConvertNumberToString(*ptr++) << indent;
e12 = *ptr++;
- outputFile << ConvertNumberToString(e12) << indent;
- outputFile << ConvertNumberToString(zero) << '\n';
+ outputFile << ConvertNumberToString(e12) << indent << ConvertNumberToString(zero) << '\n';
// row 2
- outputFile << ConvertNumberToString(e12) << indent;
- outputFile << ConvertNumberToString(*ptr++) << indent;
- outputFile << ConvertNumberToString(zero) << '\n';
+ outputFile << ConvertNumberToString(e12) << indent << ConvertNumberToString(*ptr++) << indent
+ << ConvertNumberToString(zero) << '\n';
// row 3
outputFile << ConvertNumberToString(zero) << indent << ConvertNumberToString(zero) << indent
<< ConvertNumberToString(zero) << "\n\n";
@@ -774,14 +771,12 @@ class ITKIOMeshVTK_EXPORT VTKPolyDataMeshIO : public MeshIOBase
e13 = *ptr++;
outputFile << ConvertNumberToString(e13) << '\n';
// row 2
- outputFile << ConvertNumberToString(e12) << indent;
- outputFile << ConvertNumberToString(*ptr++) << indent;
+ outputFile << ConvertNumberToString(e12) << indent << ConvertNumberToString(*ptr++) << indent;
e23 = *ptr++;
outputFile << ConvertNumberToString(e23) << '\n';
// row 3
- outputFile << ConvertNumberToString(e13) << indent;
- outputFile << ConvertNumberToString(e23) << indent;
- outputFile << ConvertNumberToString(*ptr++) << "\n\n";
+ outputFile << ConvertNumberToString(e13) << indent << ConvertNumberToString(e23) << indent
+ << ConvertNumberToString(*ptr++) << "\n\n";
i += 6;
}
}
@@ -801,8 +796,7 @@ class ITKIOMeshVTK_EXPORT VTKPolyDataMeshIO : public MeshIOBase
{
outputFile << ConvertNumberToString(buffer[ii * this->m_NumberOfPointPixelComponents + jj]) << indent;
}
- outputFile << ConvertNumberToString(buffer[ii * this->m_NumberOfPointPixelComponents + jj]);
- outputFile << '\n';
+ outputFile << ConvertNumberToString(buffer[ii * this->m_NumberOfPointPixelComponents + jj]) << '\n';
}
}
@@ -944,12 +938,9 @@ class ITKIOMeshVTK_EXPORT VTKPolyDataMeshIO : public MeshIOBase
// row 1
outputFile << *ptr++ << indent;
e12 = *ptr++;
- outputFile << e12 << indent;
- outputFile << zero << '\n';
+ outputFile << e12 << indent << zero << '\n';
// row 2
- outputFile << e12 << indent;
- outputFile << *ptr++ << indent;
- outputFile << zero << '\n';
+ outputFile << e12 << indent << *ptr++ << indent << zero << '\n';
// row 3
outputFile << zero << indent << zero << indent << zero << "\n\n";
i += 3;
@@ -969,14 +960,11 @@ class ITKIOMeshVTK_EXPORT VTKPolyDataMeshIO : public MeshIOBase
e13 = *ptr++;
outputFile << e13 << '\n';
// row 2
- outputFile << e12 << indent;
- outputFile << *ptr++ << indent;
+ outputFile << e12 << indent << *ptr++ << indent;
e23 = *ptr++;
outputFile << e23 << '\n';
// row 3
- outputFile << e13 << indent;
- outputFile << e23 << indent;
- outputFile << *ptr++ << "\n\n";
+ outputFile << e13 << indent << e23 << indent << *ptr++ << "\n\n";
i += 6;
}
}
@@ -998,8 +986,7 @@ class ITKIOMeshVTK_EXPORT VTKPolyDataMeshIO : public MeshIOBase
{
outputFile << buffer[ii * this->m_NumberOfCellPixelComponents + jj] << indent;
}
- outputFile << buffer[ii * this->m_NumberOfCellPixelComponents + jj];
- outputFile << '\n';
+ outputFile << buffer[ii * this->m_NumberOfCellPixelComponents + jj] << '\n';
}
}
diff --git a/Modules/IO/PhilipsREC/src/itkPhilipsRECImageIO.cxx b/Modules/IO/PhilipsREC/src/itkPhilipsRECImageIO.cxx
index b365a740353..e3d29acb2e3 100644
--- a/Modules/IO/PhilipsREC/src/itkPhilipsRECImageIO.cxx
+++ b/Modules/IO/PhilipsREC/src/itkPhilipsRECImageIO.cxx
@@ -761,8 +761,7 @@ PhilipsRECImageIO::ReadImageInformation()
}
//#define DEBUG_ORIENTATION
#ifdef DEBUG_ORIENTATION
- std::cout << "Direction cosines = " << direction << std::endl;
- std::cout << "Spacing = " << spacing << std::endl;
+ std::cout << "Direction cosines = " << direction << std::endl << "Spacing = " << spacing << std::endl;
#endif
// Create right/left rotation matrix (about x axis).
AffineMatrix r1;
@@ -788,10 +787,10 @@ PhilipsRECImageIO::ReadImageInformation()
// Total rotation matrix.
AffineMatrix rtotal = r1 * r2 * r3;
#ifdef DEBUG_ORIENTATION
- std::cout << "Right-Left rotation = " << r1 << std::endl;
- std::cout << "Anterior-Posterior rotation = " << r2 << std::endl;
- std::cout << "Foot-Head rotation = " << r3 << std::endl;
- std::cout << "Total = " << rtotal << std::endl;
+ std::cout << "Right-Left rotation = " << r1 << std::endl
+ << "Anterior-Posterior rotation = " << r2 << std::endl
+ << "Foot-Head rotation = " << r3 << std::endl
+ << "Total = " << rtotal << std::endl;
#endif
// Find and set origin
diff --git a/Modules/IO/TransformBase/src/itkTransformFileReader.cxx b/Modules/IO/TransformBase/src/itkTransformFileReader.cxx
index 8ac26d02bdf..6decc7bb76a 100644
--- a/Modules/IO/TransformBase/src/itkTransformFileReader.cxx
+++ b/Modules/IO/TransformBase/src/itkTransformFileReader.cxx
@@ -115,13 +115,13 @@ TransformFileReaderTemplate::Update()
const Object * obj = dynamic_cast