Skip to content

Commit ac97ee4

Browse files
authored
CXX-2770 Add missing postlude header include directives (#1249)
1 parent 7253596 commit ac97ee4

File tree

7 files changed

+0
-22
lines changed

7 files changed

+0
-22
lines changed

cmake/MacroGuardTest.cmake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ function(add_macro_guard_test)
108108
set(relheader "${header}")
109109
endif()
110110

111-
# CXX-2770: workaround missing postlude header includes.
112-
string(TOUPPER "${PARSED_PROJECT_NAME}" project_name_upper)
113-
string(APPEND MACRO_GUARD_TEST "#define ${project_name_upper}_TEST_MACRO_GUARDS_FIX_MISSING_POSTLUDE\n\n")
114-
115111
# The include directive.
116112
string(APPEND MACRO_GUARD_TEST "#include <${relheader}>\n\n")
117113

src/bsoncxx/include/bsoncxx/v_noabi/bsoncxx/builder/list.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,7 @@ using namespace ::bsoncxx::v_noabi::types; // Deprecated. Deliberately undocume
215215
} // namespace builder
216216
} // namespace bsoncxx
217217

218-
// CXX-2770: missing include of postlude header.
219-
#if defined(BSONCXX_TEST_MACRO_GUARDS_FIX_MISSING_POSTLUDE)
220218
#include <bsoncxx/config/postlude.hpp>
221-
#endif
222219

223220
///
224221
/// @file

src/mongocxx/include/mongocxx/v_noabi/mongocxx/gridfs/downloader.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,7 @@ class downloader {
174174
} // namespace v_noabi
175175
} // namespace mongocxx
176176

177-
// CXX-2770: missing include of postlude header.
178-
#if defined(MONGOCXX_TEST_MACRO_GUARDS_FIX_MISSING_POSTLUDE)
179177
#include <mongocxx/config/postlude.hpp>
180-
#endif
181178

182179
///
183180
/// @file

src/mongocxx/include/mongocxx/v_noabi/mongocxx/gridfs/uploader.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,7 @@ class uploader {
173173
} // namespace v_noabi
174174
} // namespace mongocxx
175175

176-
// CXX-2770: missing include of postlude header.
177-
#if defined(MONGOCXX_TEST_MACRO_GUARDS_FIX_MISSING_POSTLUDE)
178176
#include <mongocxx/config/postlude.hpp>
179-
#endif
180177

181178
///
182179
/// @file

src/mongocxx/include/mongocxx/v_noabi/mongocxx/options/auto_encryption.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,7 @@ class auto_encryption {
426426
} // namespace v_noabi
427427
} // namespace mongocxx
428428

429-
// CXX-2770: missing include of postlude header.
430-
#if defined(MONGOCXX_TEST_MACRO_GUARDS_FIX_MISSING_POSTLUDE)
431429
#include <mongocxx/config/postlude.hpp>
432-
#endif
433430

434431
///
435432
/// @file

src/mongocxx/include/mongocxx/v_noabi/mongocxx/options/data_key.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,7 @@ class data_key {
177177
} // namespace v_noabi
178178
} // namespace mongocxx
179179

180-
// CXX-2770: missing include of postlude header.
181-
#if defined(MONGOCXX_TEST_MACRO_GUARDS_FIX_MISSING_POSTLUDE)
182180
#include <mongocxx/config/postlude.hpp>
183-
#endif
184181

185182
///
186183
/// @file

src/mongocxx/include/mongocxx/v_noabi/mongocxx/options/range.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ class range {
9494
} // namespace v_noabi
9595
} // namespace mongocxx
9696

97-
// CXX-2770: missing include of postlude header.
98-
#if defined(MONGOCXX_TEST_MACRO_GUARDS_FIX_MISSING_POSTLUDE)
9997
#include <mongocxx/config/postlude.hpp>
100-
#endif
10198

10299
///
103100
/// @file

0 commit comments

Comments
 (0)