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

Revisit includes to be alphabetically sorted and organized by libraries #3

Open
jcfr opened this issue Aug 16, 2023 · 0 comments
Open

Comments

@jcfr
Copy link

jcfr commented Aug 16, 2023

Instead of hard to read list of include like the depicted below, consider organizing the includes like this:

// Qt includes
#include <QPushButton>
...

// Modules includes
..."

// ITK includes
...

// VTK includes
...

// STD includes
#include <ostream>

For example:

Unmaintainable list of includes:

#include "qSlicerCLIModule.h"
#include "qSlicerApplication.h"
#include <itkeigen/Eigen/Core>
#include <QFileDialog>
#include <qmainwindow.h>
#include <qSlicerModuleSelectorToolBar.h>
#include <qmenu.h>
#include <ctkMessageBox.h>
#include <qtablewidget.h>
#include <qDebug>
#include <QHeaderView.h>
#include <QStatusBar.h>
#include <QDockWidget>
#include <qpushbutton.h>
#include <QJsonObject>
#include <ctkCollapsibleButton.h>
#include"vtkMRMLLabelMapVolumeNode.h"
#include <vtkImageThreshold.h>
#include <QTimer>
#include<stdio.h>
#include <vtkMultiObjectMassProperties.h>
#include <vtkDataArray.h>
#include <vtkFieldData.h>
#include <ostream>
#include <vtkOrientedImageData.h>
#include <PythonQt.h>
#include <QList>
#include <vtkImageCast.h>
#include <vtkITKIslandMath.h>
#include <vtkOrientedImageData.h>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant