Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-2767

Add macro guard tests to test for config macro leaks

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.9.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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@mongodb.com Ezra Chung
            Reporter:
            ezra.chung@mongodb.com Ezra Chung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: