Improve include guard docs in contributing.md

This commit is contained in:
Martin Hořeňovský 2022-04-25 21:33:05 +02:00
parent 431dcf36ea
commit ee3bbecf51
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -296,9 +296,9 @@ Specifically, every source file should start with the licence header:
``` ```
The include guards for header files should follow the pattern `{FILENAME}_INCLUDED`. The include guards for header files should follow the pattern `{FILENAME}_INCLUDED`.
This means that for file `catch_matchers_foo`, the include guard should This means that for file `catch_matchers_foo.hpp`, the include guard should
be `CATCH_MATCHERS_FOO_INCLUDED`, for `catch_generators_bar`, the include be `CATCH_MATCHERS_FOO_HPP_INCLUDED`, for `catch_generators_bar.hpp`, the include
guard should be `CATCH_GENERATORS_BAR_INCLUDED`, and so on. guard should be `CATCH_GENERATORS_BAR_HPP_INCLUDED`, and so on.
## CoC ## CoC