Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STYLE: Remove "include guards" from cxx files #345

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

N-Dekker
Copy link
Member

@N-Dekker N-Dekker commented Nov 2, 2020

Include guards (like #define FileName_h) are intended to avoid the problem of double inclusion: https://en.wikipedia.org/wiki/Include_guard

They should only be used in header files (*.h, *.hxx).

Include guards (like `#define FileName_h`) are intended to avoid the problem of double inclusion: https://en.wikipedia.org/wiki/Include_guard

They should only be used in header files (*.h, *.hxx).
@N-Dekker N-Dekker merged commit 4481fa7 into develop Nov 2, 2020
@N-Dekker N-Dekker deleted the Remove-include-guards-from-cxx-files branch November 2, 2020 11:22
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Nov 3, 2020
Include guards (like #define FileName_h) are intended to avoid the
problem of double inclusion (https://en.wikipedia.org/wiki/Include_guard)
They should only be used in header files (*.h, *.hxx).

Corresponding elastix pull request:
SuperElastix/elastix#345
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Nov 3, 2020
Include guards (like #define FileName_h) are intended to avoid the
problem of double inclusion (https://en.wikipedia.org/wiki/Include_guard)
They should only be used in header files (*.h, *.hxx).

Corresponding elastix pull request:
SuperElastix/elastix#345
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Nov 3, 2020
Include guards (like `itkSomeFileName_h`) are specifically intended to
avoid problems with double inclusion of header files, so they should
only be used in *.h and *.hxx files.

Corresponding elastix pull request:
SuperElastix/elastix#345
dzenanz pushed a commit to InsightSoftwareConsortium/ITK that referenced this pull request Nov 9, 2020
Include guards (like `itkSomeFileName_h`) are specifically intended to
avoid problems with double inclusion of header files, so they should
only be used in *.h and *.hxx files.

Corresponding elastix pull request:
SuperElastix/elastix#345
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.

1 participant