Skip to content

Commit

Permalink
COMP: Remove inclusion of .hxx files as headers
Browse files Browse the repository at this point in the history
The ability to include either .h or .hxx files as
header files required recursively reading the
.h files twice.  The added complexity is
unnecessary, costly, and can confuse static
analysis tools that monitor header guardes (due
to reaching the maximum depth of recursion
limits for nested #ifdefs in checking).
  • Loading branch information
hjmjohnson committed Dec 17, 2021
1 parent cee053a commit f23787f
Show file tree
Hide file tree
Showing 140 changed files with 0 additions and 140 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ limitations under the License.
#ifndef __itktubeCompleteImageResampleFilter_hxx
#define __itktubeCompleteImageResampleFilter_hxx

#include "itktubeCompleteImageResampleFilter.h"

namespace itk
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ limitations under the License.
#ifndef __itktubeMeanAndSigmaImageBuilder_hxx
#define __itktubeMeanAndSigmaImageBuilder_hxx

#include "itktubeMeanAndSigmaImageBuilder.h"

template< class TInputImageType, class TOutputMeanImageType,
class TOutputSigmaImageType >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ limitations under the License.
#ifndef __itktubeMinimizeImageSizeFilter_hxx
#define __itktubeMinimizeImageSizeFilter_hxx

#include "itktubeMinimizeImageSizeFilter.h"

namespace itk
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ limitations under the License.
#ifndef __itktubeRobustMeanAndSigmaImageBuilder_hxx
#define __itktubeRobustMeanAndSigmaImageBuilder_hxx

#include "itktubeRobustMeanAndSigmaImageBuilder.h"

template< class TInputImageType, class TOutputMeanImageType,
class TOutputSigmaImageType >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ limitations under the License.
#ifndef __tubeCompareImageWithPrior_hxx
#define __tubeCompareImageWithPrior_hxx

#include "tubeCompareImageWithPrior.h"

#include "../CLI/tubeCLIFilterWatcher.h"
#include "../CLI/tubeCLIProgressReporter.h"
Expand Down
1 change: 0 additions & 1 deletion include/tubeComputeBinaryImageSimilarityMetrics.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __tubeComputeBinaryImageSimilarityMetrics_hxx
#define __tubeComputeBinaryImageSimilarityMetrics_hxx

#include "tubeComputeBinaryImageSimilarityMetrics.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeComputeImageSimilarityMetrics.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeComputeImageSimilarityMetrics_hxx
#define __tubeComputeImageSimilarityMetrics_hxx

#include "tubeComputeImageSimilarityMetrics.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeComputeImageStatistics.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeComputeImageStatistics_hxx
#define __tubeComputeImageStatistics_hxx

#include "tubeComputeImageStatistics.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeComputeTrainingMask.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ limitations under the License.
#ifndef __tubeComputeTrainingMask_hxx
#define __tubeComputeTrainingMask_hxx

#include "tubeComputeTrainingMask.h"

namespace tube {

Expand Down
1 change: 0 additions & 1 deletion include/tubeComputeTubeFlyThroughImage.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeComputeTubeFlyThroughImage_hxx
#define __tubeComputeTubeFlyThroughImage_hxx

#include "tubeComputeTubeFlyThroughImage.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeComputeTubeMeasures.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeComputeTubeMeasures_hxx
#define __tubeComputeTubeMeasures_hxx

#include "tubeComputeTubeMeasures.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeConvertImagesToCSV.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeConvertImagesToCSV_hxx
#define __tubeConvertImagesToCSV_hxx

#include "tubeConvertImagesToCSV.h"


namespace tube
Expand Down
1 change: 0 additions & 1 deletion include/tubeConvertShrunkenSeedImageToList.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeConvertShrunkenSeedImageToList_hxx
#define __tubeConvertShrunkenSeedImageToList_hxx

#include "tubeConvertShrunkenSeedImageToList.h"


namespace tube
Expand Down
1 change: 0 additions & 1 deletion include/tubeConvertSpatialGraphToImage.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __tubeConvertSpatialGraphToImage_hxx
#define __tubeConvertSpatialGraphToImage_hxx

#include "tubeConvertSpatialGraphToImage.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeConvertTubesToDensityImage.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __tubeConvertTubesToDensityImage_hxx
#define __tubeConvertTubesToDensityImage_hxx

#include "tubeConvertTubesToDensityImage.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeConvertTubesToImage.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeConvertTubesToImage_hxx
#define __tubeConvertTubesToImage_hxx

#include "tubeConvertTubesToImage.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeConvertTubesToTubeGraph.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeConvertTubesToTubeGraph_hxx
#define __tubeConvertTubesToTubeGraph_hxx

#include "tubeConvertTubesToTubeGraph.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeCropImage.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeCropImage_hxx
#define __tubeCropImage_hxx

#include "tubeCropImage.h"


namespace tube
Expand Down
1 change: 0 additions & 1 deletion include/tubeCropTubes.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __tubeCropTubes_hxx
#define __tubeCropTubes_hxx

#include "tubeCropTubes.h"


namespace tube
Expand Down
1 change: 0 additions & 1 deletion include/tubeEnhanceContrastUsingPrior.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __tubeEnhanceContrastUsingPrior_hxx
#define __tubeEnhanceContrastUsingPrior_hxx

#include "tubeEnhanceContrastUsingPrior.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeEnhanceEdgesUsingDiffusion.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeEnhanceEdgesUsingDiffusion_hxx
#define __tubeEnhanceEdgesUsingDiffusion_hxx

#include "tubeEnhanceEdgesUsingDiffusion.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeEnhanceTubesUsingDiffusion.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeEnhanceTubesUsingDiffusion_hxx
#define __tubeEnhanceTubesUsingDiffusion_hxx

#include "tubeEnhanceTubesUsingDiffusion.h"

#include <vector>

Expand Down
1 change: 0 additions & 1 deletion include/tubeEnhanceTubesUsingDiscriminantAnalysis.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __tubeEnhanceTubesUsingDiscriminantAnalysis_hxx
#define __tubeEnhanceTubesUsingDiscriminantAnalysis_hxx

#include "tubeEnhanceTubesUsingDiscriminantAnalysis.h"


namespace tube
Expand Down
1 change: 0 additions & 1 deletion include/tubeImageMath.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeImageMath_hxx
#define __tubeImageMath_hxx

#include "tubeImageMath.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeMergeAdjacentImages.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ limitations under the License.
#ifndef __tubeMergeAdjacentImages_hxx
#define __tubeMergeAdjacentImages_hxx

#include "tubeMergeAdjacentImages.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeRegisterImages.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __tubeRegisterImages_hxx
#define __tubeRegisterImages_hxx

#include "tubeRegisterImages.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeResampleImage.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __tubeResampleImage_hxx
#define __tubeResampleImage_hxx

#include "tubeResampleImage.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeSegmentBinaryImageSkeleton3D.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeSegmentBinaryImageSkeleton3D_hxx
#define __tubeSegmentBinaryImageSkeleton3D_hxx

#include "tubeSegmentBinaryImageSkeleton3D.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeSegmentConnectedComponents.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ limitations under the License.
#ifndef __tubeSegmentConnectedComponents_hxx
#define __tubeSegmentConnectedComponents_hxx

#include "tubeSegmentConnectedComponents.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeSegmentConnectedComponentsUsingParzenPDFs.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeSegmentConnectedComponentsUsingParzenPDFs_hxx
#define __tubeSegmentConnectedComponentsUsingParzenPDFs_hxx

#include "tubeSegmentConnectedComponentsUsingParzenPDFs.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeSegmentTubeUsingMinimalPath.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __tubeSegmentTubeUsingMinimalPath_hxx
#define __tubeSegmentTubeUsingMinimalPath_hxx

#include "tubeSegmentTubeUsingMinimalPath.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeSegmentTubes.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __tubeSegmentTubes_hxx
#define __tubeSegmentTubes_hxx

#include "tubeSegmentTubes.h"


namespace tube
Expand Down
1 change: 0 additions & 1 deletion include/tubeSegmentUsingOtsuThreshold.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ limitations under the License.
#ifndef __tubeSegmentUsingOtsuThreshold_hxx
#define __tubeSegmentUsingOtsuThreshold_hxx

#include "tubeSegmentUsingOtsuThreshold.h"

namespace tube
{
Expand Down
1 change: 0 additions & 1 deletion include/tubeShrinkImageWithBlending.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __tubeShrinkImageWithBlending_hxx
#define __tubeShrinkImageWithBlending_hxx

#include "tubeShrinkImageWithBlending.h"

namespace tube {

Expand Down
1 change: 0 additions & 1 deletion include/tubeWrite4DImageFrom3DImages.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#define __tubeWrite4DImageFrom3DImages_hxx


#include "tubeWrite4DImageFrom3DImages.h"

#include "tubeMessage.h"

Expand Down
1 change: 0 additions & 1 deletion src/Filtering/itkImageRegionSplitter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __itkImageRegionSplitter_hxx
#define __itkImageRegionSplitter_hxx

#include "itkImageRegionSplitter.h"
#include <cmath>

namespace itk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __itktubeAnisotropicCoherenceEnhancingDiffusionImageFilter_hxx
#define __itktubeAnisotropicCoherenceEnhancingDiffusionImageFilter_hxx

#include "itktubeAnisotropicCoherenceEnhancingDiffusionImageFilter.h"

#include <itkFixedArray.h>
#include <itkImageFileWriter.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __itktubeAnisotropicDiffusionTensorFunction_hxx
#define __itktubeAnisotropicDiffusionTensorFunction_hxx

#include "itktubeAnisotropicDiffusionTensorFunction.h"

#include <itkTextOutput.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __itktubeAnisotropicDiffusionTensorImageFilter_hxx
#define __itktubeAnisotropicDiffusionTensorImageFilter_hxx

#include "itktubeAnisotropicDiffusionTensorImageFilter.h"

#include "itktubeAnisotropicDiffusionTensorFunction.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __itktubeAnisotropicEdgeEnhancementDiffusionImageFilter_hxx
#define __itktubeAnisotropicEdgeEnhancementDiffusionImageFilter_hxx

#include "itktubeAnisotropicEdgeEnhancementDiffusionImageFilter.h"

#include <itkFixedArray.h>
#include <itkGradientMagnitudeRecursiveGaussianImageFilter.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __itktubeAnisotropicHybridDiffusionImageFilter_hxx
#define __itktubeAnisotropicHybridDiffusionImageFilter_hxx

#include "itktubeAnisotropicHybridDiffusionImageFilter.h"

#include <itkFixedArray.h>
#include <itkGradientMagnitudeRecursiveGaussianImageFilter.h>
Expand Down
1 change: 0 additions & 1 deletion src/Filtering/itktubeBinaryThinningImageFilter3D.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ limitations under the License.

#include <iostream>

#include "itktubeBinaryThinningImageFilter3D.h"
#include "itkImageRegionConstIterator.h"
#include "itkImageRegionIterator.h"
#include "itkNeighborhoodIterator.h"
Expand Down
1 change: 0 additions & 1 deletion src/Filtering/itktubeCVTImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ limitations under the License.
#ifndef __itktubeCVTImageFilter_hxx
#define __itktubeCVTImageFilter_hxx

#include "itktubeCVTImageFilter.h"

#include <itkDanielssonDistanceMapImageFilter.h>
#include <itkMersenneTwisterRandomVariateGenerator.h>
Expand Down
1 change: 0 additions & 1 deletion src/Filtering/itktubeComputeTubeFlyThroughImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __itktubeComputeTubeFlyThroughImageFilter_hxx
#define __itktubeComputeTubeFlyThroughImageFilter_hxx

#include "itktubeComputeTubeFlyThroughImageFilter.h"

#include <itkImageRegionIterator.h>
#include <itkImageRegionIteratorWithIndex.h>
Expand Down
1 change: 0 additions & 1 deletion src/Filtering/itktubeComputeTubeMeasuresFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __itktubeComputeTubeMeasuresFilter_hxx
#define __itktubeComputeTubeMeasuresFilter_hxx

#include "itktubeComputeTubeMeasuresFilter.h"

namespace itk
{
Expand Down
1 change: 0 additions & 1 deletion src/Filtering/itktubeContrastCostFunction.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __itktubeContrastCostFunction_hxx
#define __itktubeContrastCostFunction_hxx

#include "itktubeContrastCostFunction.h"

namespace itk
{
Expand Down
1 change: 0 additions & 1 deletion src/Filtering/itktubeConvertImagesToCSVFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#ifndef __itktubeConvertImagesToCSVFilter_hxx
#define __itktubeConvertImagesToCSVFilter_hxx

#include "itktubeConvertImagesToCSVFilter.h"

namespace itk
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __itktubeConvertShrunkenSeedImageToListFilter_hxx
#define __itktubeConvertShrunkenSeedImageToListFilter_hxx

#include "itktubeConvertShrunkenSeedImageToListFilter.h"

namespace itk
{
Expand Down
1 change: 0 additions & 1 deletion src/Filtering/itktubeConvertSpatialGraphToImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ limitations under the License.
#ifndef __itktubeConvertSpatialGraphToImageFilter_hxx
#define __itktubeConvertSpatialGraphToImageFilter_hxx

#include "itktubeConvertSpatialGraphToImageFilter.h"

namespace itk
{
Expand Down
1 change: 0 additions & 1 deletion src/Filtering/itktubeCropImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef __itktubeCropImageFilter_hxx
#define __itktubeCropImageFilter_hxx

#include "itktubeCropImageFilter.h"

namespace itk
{
Expand Down
Loading

0 comments on commit f23787f

Please sign in to comment.