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 @@ -1160,14 +1160,6 @@ namespace {
1160
1160
1161
1161
- * Rationale* : Avoids confusion about the namespace context.
1162
1162
1163
- - Use ` #include <primitives/transaction.h> ` bracket syntax instead of
1164
- ` #include "primitives/transactions.h" ` quote syntax.
1165
-
1166
- - * Rationale* : Bracket syntax is less ambiguous because the preprocessor
1167
- searches a fixed list of include directories without taking location of the
1168
- source file into account. This allows quoted includes to stand out more when
1169
- the location of the source file actually is relevant.
1170
-
1171
1163
- Use include guards to avoid the problem of double inclusion. The header file
1172
1164
` foo/bar.h ` should use the include guard identifier ` BITCOIN_FOO_BAR_H ` , e.g.
1173
1165
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