Skip to content

STYLE: Prepare for clang format style enforcement - #1094

Merged
hjmjohnson merged 7 commits into
InsightSoftwareConsortium:masterfrom
hjmjohnson:prepare-for-clang-format
Jul 16, 2019
Merged

hjmjohnson merged 7 commits into
InsightSoftwareConsortium:masterfrom
hjmjohnson:prepare-for-clang-format

Conversation

@hjmjohnson

Copy link
Copy Markdown
Member

Provide initial code changes to facilitate enforcement of an ITK style that can be uniformly applied in an automated way.

These problems appeared when enforcing a consistent style with the clang-formatting tool. It is a first step towards providing an easier code formatting style enforcement throughout ITK.

Fix compilation issues due to untested code refactorings
when matching ITK v5 coding conventions.
Modules/Numerics/FEM/src/dsrc2c.c with size 246224 bytes (240.45 KiB)
which is greater than the maximum size 100000 bytes
@hjmjohnson
hjmjohnson requested review from dzenanz and thewtex July 15, 2019 15:46
@hjmjohnson hjmjohnson self-assigned this Jul 15, 2019
@blowekamp

Copy link
Copy Markdown
Member

LGTM.

@jhlegarreta jhlegarreta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hjmjohnson . A few in-line comments.

Comment thread Testing/Temporary/CTestCostData.txt Resolved
Comment thread Testing/Temporary/LastTest.log Resolved
These long-standing kwstyle violations are explicitly
ignored to allow clean testing.
Use more transparent coding of templated type-checked functions
rather than partial-code-chunk macros.
@hjmjohnson
hjmjohnson force-pushed the prepare-for-clang-format branch from af374bb to a448dac Compare July 15, 2019 16:55

@dzenanz dzenanz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good. It would be good if you added some forgotten if-clauses.

Add support for LONGLONG and ULONGLONG types
for completeness.
@hjmjohnson
hjmjohnson merged commit dfce073 into InsightSoftwareConsortium:master Jul 16, 2019
@hjmjohnson
hjmjohnson deleted the prepare-for-clang-format branch October 23, 2019 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants