ENH: Update coding style guidelines#170
ENH: Update coding style guidelines#170dzenanz merged 8 commits intoInsightSoftwareConsortium:masterfrom
Conversation
Remove uses of `itk::ImageTraits`. Cros-referencing related ITK commits: InsightSoftwareConsortium/ITK@dc9630a InsightSoftwareConsortium/ITK@d775b4d Update the template parameters of `itk::Image` to the current implementation: https://github.com/InsightSoftwareConsortium/ITK/tree/217c0d408487d454cf9b0f945ab5575c2322ee7a
Make test ending messages consistent.
Mark class destructor with `override` and replace its default body with = default; to match current practice in ITK. Cross-referencing related ITK commits, e.g.: InsightSoftwareConsortium/ITK@7ef2496 InsightSoftwareConsortium/ITK@9b74640
Match the current function deletion practice in ITK: add the `ITK_DISALLOW_COPY_AND_ASSIGN` macro to the class' public section. Cross-referencing the ITK commits: InsightSoftwareConsortium/ITK@939cee4 InsightSoftwareConsortium/ITK@b0f183b
Prefer using pre-increment over post-increment `for` loop local counters to match current ITK practice.
|
A few notes:
Pinging @N-Dekker on this.
But maybe I missed them. Anyone is welcome to add a commit to fix any.
Cross-referencing: |
The ITKSoftwareGuide/SoftwareGuide/Latex/Appendices/CodingStyleGuide.tex Lines 2882 to 2885 in 7db4436 |
Thanks. The definition was outdated. I updated it in ec15294. The new one does not have any return type. |
ec15294 to
b53226d
Compare
Update the ITK code style to the current, automatically enforced style: - Introduce the use of the `clang-format` style enforcing tool. - Modify the related passages. - Update the verbatim code snippets to reflect the new style. Cross-referencing the ITK change commits: https://github.com/InsightSoftwareConsortium/ITK/pull/1191/commits
b53226d to
5f6ae91
Compare
Document brace and brace list initialization preference in member declaration. Change the examples that were using any other initialization type accordingly, using mock class and method names if necessary.
Update `itk::N4BiasFieldCorrectionImageFilter::Sharpen` definition to match the current one: https://github.com/InsightSoftwareConsortium/ITK/blob/828453d1bf61c487310d2d8c9570093e08798a40/Modules/Filtering/BiasCorrection/include/itkN4BiasFieldCorrectionImageFilter.hxx#L261
5f6ae91 to
55ea845
Compare
itk::N4BiasFieldCorrectionImageFilter::SharpendefinitionFixes #133.