swift
5b7c595b - [cxx-interop] Remove workarounds for `CF_OPTIONS` default arguments

Commit
236 days ago
[cxx-interop] Remove workarounds for `CF_OPTIONS` default arguments ClangImporter has logic that infers default arguments of certain C/C++ types, such as the types declared via `CF_OPTIONS`/`NS_OPTIONS` macros. There were some workarounds in place which triggered for C++ interop mode specifically. The workarounds were applying a heuristic based on the name of the type, which tried to match the behavior to non-C++ interop mode for certain types from the OS SDK. That was not working well for user-defined types, causing source compatibility breakages when enabling C++ interop. This change replaces the name-based heuristic with a more robust criteria. See also 3791ccb6. rdar://142961112
Author
Committer
Parents
Loading