mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
Improve include guard docs in contributing.md
This commit is contained in:
parent
431dcf36ea
commit
ee3bbecf51
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user