Add macro guard tests to test for config macro leaks

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 3.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      "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.

            Assignee:
            Ezra Chung
            Reporter:
            Ezra Chung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: