Files
swift-mirror/test/Interop/Cxx/class/Inputs/class-protocol-name-clash.h
Daniel Rodríguez Troitiño 746080d6d1 [ClangImporter] Suffix ambiguous protocol names if C++ interop is enabled
The Clang Importer when C++ interop is not enabled, disambigate an Obj-C
class and protocol that are named the same by appending `Protocol` to
the protocol. This was not happening when C++ interop was enabled, but
should also apply to Obj-C++ modules.

The fix is providing an starting scope for the search, which the C++
name lookup need to actually find the similarly named counterpart.

Includes a test to avoid this problem creeping in again, and locally it
did not break any other tests.
2022-03-11 17:18:07 -08:00

6 lines
82 B
Objective-C

@protocol TheClashingName
@end
@interface TheClashingName <TheClashingName>
@end