Skip to content

Commit fa00b8c

Browse files
author
MarcoFalke
committed
doc: Remove section about include guards
1 parent fad6cd7 commit fa00b8c

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

doc/developer-notes.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,16 +1160,6 @@ namespace {
11601160

11611161
- *Rationale*: Avoids confusion about the namespace context.
11621162

1163-
- Use include guards to avoid the problem of double inclusion. The header file
1164-
`foo/bar.h` should use the include guard identifier `BITCOIN_FOO_BAR_H`, e.g.
1165-
1166-
```c++
1167-
#ifndef BITCOIN_FOO_BAR_H
1168-
#define BITCOIN_FOO_BAR_H
1169-
...
1170-
#endif // BITCOIN_FOO_BAR_H
1171-
```
1172-
11731163
GUI
11741164
-----
11751165

test/lint/lint-include-guards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def main():
8383

8484
if count != 3:
8585
print(f'{header_file} seems to be missing the expected '
86-
'include guard:')
86+
'include guard to prevent the double inclusion problem:')
8787
print(f' #ifndef {header_id}')
8888
print(f' #define {header_id}')
8989
print(' ...')

0 commit comments

Comments
 (0)