Skip to content

Detecting references to exluded symbols#56317

Open
coado wants to merge 1 commit intofacebook:mainfrom
coado:export-D99417803
Open

Detecting references to exluded symbols#56317
coado wants to merge 1 commit intofacebook:mainfrom
coado:export-D99417803

Conversation

@coado
Copy link
Copy Markdown
Contributor

@coado coado commented Apr 3, 2026

Summary:
Adds --warn-excluded-refs flag to the C++ API parser which produces warnings whenever the excluded symbol is still referenced in the snapshot.

By definition, if the private symbol is referenced in the public API then it must be public. Hence, every reference to it should also be excluded. This flag helps to verify if there are such cases.

Changelog:
[Internal]

Differential Revision: D99417803

Summary:
Adds `--warn-excluded-refs` flag to the C++ API parser which produces warnings whenever the excluded symbol is still referenced in the snapshot. 

By definition, if the private symbol is referenced in the public API then it must be public. Hence, every reference to it should also be excluded. This flag helps to verify if there are such cases. 

Changelog:
[Internal]

Differential Revision: D99417803
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 3, 2026
@facebook-github-tools facebook-github-tools bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Apr 3, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 3, 2026

@coado has exported this pull request. If you are a Meta employee, you can view the originating Diff in D99417803.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant