[CXX-2767] Add macro guard tests to test for config macro leaks Created: 20/Oct/23 Updated: 26/Oct/23 Resolved: 26/Oct/23 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.9.0 |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Ezra Chung | Assignee: | Ezra Chung |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Description |
|
"Config macros" defined in "config headers" under bsoncxx/config and mongocxx/config are expected to be guarded by prelude/postlude header files that ensure the macros do not conflict with any pre-existing macros, nor leak their definitions into user code. There are several public header files that do not include the postlude header despite including the prelude header, therefore leaking config macros into user code. |
| Comments |
| Comment by Githook User [ 26/Oct/23 ] |
|
Author: {'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}Message:
|