File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1159,14 +1159,6 @@ namespace {
1159
1159
1160
1160
- * Rationale* : Avoids confusion about the namespace context.
1161
1161
1162
- - Use ` #include <primitives/transaction.h> ` bracket syntax instead of
1163
- ` #include "primitives/transactions.h" ` quote syntax.
1164
-
1165
- - * Rationale* : Bracket syntax is less ambiguous because the preprocessor
1166
- searches a fixed list of include directories without taking location of the
1167
- source file into account. This allows quoted includes to stand out more when
1168
- the location of the source file actually is relevant.
1169
-
1170
1162
- Use include guards to avoid the problem of double inclusion. The header file
1171
1163
` foo/bar.h ` should use the include guard identifier ` BITCOIN_FOO_BAR_H ` , e.g.
1172
1164
Original file line number Diff line number Diff line change @@ -166,6 +166,10 @@ def main():
166
166
167
167
# Enforce bracket syntax includes
168
168
quote_syntax_inclusions = find_quote_syntax_inclusions ()
169
+ # *Rationale*: Bracket syntax is less ambiguous because the preprocessor
170
+ # searches a fixed list of include directories without taking location of the
171
+ # source file into account. This allows quoted includes to stand out more when
172
+ # the location of the source file actually is relevant.
169
173
170
174
if quote_syntax_inclusions :
171
175
print ("Please use bracket syntax includes (\" #include <foo.h>\" ) instead of quote syntax includes:" )
You can’t perform that action at this time.
0 commit comments