Skip to content

Sanitize include guards

Jö Fahlke requested to merge feature/sanitize-include-guards into master

This normalizes all include guards, and add them where they are missing.

This was done in part by an automated script sanitize_include_guard using the command line

find -name \*.hh -print0 | xargs -0 --no-run-if-empty --max-args=1 sanitize_include_guard

in pdelab's top_src_dir. I you are gonna use the script yourself, make sure to review the changes it makes -- i.e. it has a hard time guessing where it should add an include guard if the file contains a comment at the top (before or after the comment?).

Special mention:

  • DUNE_PDELAB_CONSTRAINTS_NOCONSTRAINTS_HH was previously used as the include guard for dune/pdelab/gridfunctionspace/utility.hh. It is also the include guard for dune/pdelab/constraints/noconstraints.hh (previously and after the patch).

None of the include guards changed here were used in any file inside dune-pdelab outside of include guarding.

make test succeeded.

Merge request reports

Loading