Files
swift-mirror/test/IDE/Inputs/custom-modules/ImportAsMemberB.h
Doug Gregor 47b2be3138 [Clang importer] Import a getter or getter/setter pair as a property.
When a global function is determined to be a lone getter or a
getter/setter pair, import it as a property. Handle global, instance,
and static properties.

As part of this, generalize importAsMethod to also handle static
methods and map pointer-to-non-const arguments to 'mutating' methods.
2016-03-06 21:25:43 -08:00

25 lines
753 B
C

#ifndef IMPORT_AS_MEMBER_B_H
#define IMPORT_AS_MEMBER_B_H
#include "ImportAsMember.h"
extern double IAMStruct1StaticVar1
__attribute__((swift_name("Struct1.static1")));
extern float IAMStruct1StaticVar2
__attribute__((swift_name("Struct1.static2")));
extern struct IAMStruct1 IAMStruct1CreateFloat(float value)
__attribute__((swift_name("Struct1.init(float:)")));
struct IAMStruct1 IAMStruct1GetCurrentStruct1(void)
__attribute__((swift_name("getter:currentStruct1()")));
void IAMStruct1SetCurrentStruct1(struct IAMStruct1 newValue)
__attribute__((swift_name("setter:currentStruct1(_:)")));
struct IAMStruct1 IAMStruct1GetZeroStruct1(void)
__attribute__((swift_name("getter:Struct1.zero()")));
#endif // IMPORT_AS_MEMBER_B_H