[CDRIVER-2761] Catch missing MONGOC_EXPORTs automatically Created: 20/Jul/18  Updated: 28/Sep/23

Status: Backlog
Project: C Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Spencer Mckenney Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-2756 mongoc_collection_replace_one missing... Closed
Epic Link: CDRIVER-2733

 Description   

In the past we have forgotten to add MONGOC_EXPORT to a functions header file and as a result, the function isn't available in the dynamic library for Windows. Let's find a way to automatically test this so we don't make the mistake again.

See CDRIVER-2756 for an example.



 Comments   
Comment by Kevin Albertson [ 20/Jul/18 ]

One idea is to write a script that parses the public headers, e.g. a clang plugin, to verify the MONGOC_EXPORT attributes are on the function definitions.

Generated at Wed Feb 07 21:16:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.