Skip to content

Commit 15c29de

Browse files
MarcoFalkeRandyMcMillan
authored andcommitted
doc: Remove section about include guards
1 parent 7817c59 commit 15c29de

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
@@ -1159,16 +1159,6 @@ namespace {
11591159

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

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

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)