2
0
mirror of synced 2025-02-23 14:58:12 +00:00
mobile/bind/testdata/doc.objc.h.golden
James Treanor 72d8d1135a bind: fix CLANG_WARN_STRICT_PROTOTYPES errors for generated ObjC code
Xcode 9 now enables CLANG_WARN_STRICT_PROTOTYPES by default.

This update ObjC function prototypes with no params from

FOUNDATION_EXPORT Something* DoSomething();

to

FOUNDATION_EXPORT Something* DoSomething(void);

Change-Id: I23b1d3e70a2ede2d2d77951ffe8a1a9598a1b7a0
Reviewed-on: https://go-review.googlesource.com/68970
Reviewed-by: Elias Naur <elias.naur@gmail.com>
2017-10-09 16:20:38 +00:00

134 lines
1.9 KiB
Plaintext

// Objective-C API for talking to doc Go package.
// gobind -lang=objc doc
//
// File is generated by gobind. Do not edit.
#ifndef __Doc_H__
#define __Doc_H__
@import Foundation;
#include "Universe.objc.h"
@class DocNoDoc;
@class DocS;
@class DocS2;
@protocol DocI;
@class DocI;
@protocol DocI <NSObject>
- (void)im;
@end
/**
* A generic comment with <HTML>.
*/
@interface DocNoDoc : NSObject <goSeqRefInterface> {
}
@property(strong, readonly) id _ref;
- (instancetype)initWithRef:(id)ref;
- (instancetype)init;
@end
/**
* S is a struct.
*/
@interface DocS : NSObject <goSeqRefInterface> {
}
@property(strong, readonly) id _ref;
- (instancetype)initWithRef:(id)ref;
/**
* NewS is a constructor.
*/
- (instancetype)init;
/**
* SF is a field.
*/
- (NSString*)sf;
- (void)setSF:(NSString*)v;
/**
* Anonymous field.
*/
- (DocS2*)s2;
- (void)setS2:(DocS2*)v;
/**
* Multiple fields.
*/
- (NSString*)f1;
- (void)setF1:(NSString*)v;
/**
* Multiple fields.
*/
- (NSString*)f2;
- (void)setF2:(NSString*)v;
/**
* After is another method.
*/
- (void)after;
- (void)before;
@end
/**
* S2 is a struct.
*/
@interface DocS2 : NSObject <goSeqRefInterface> {
}
@property(strong, readonly) id _ref;
- (instancetype)initWithRef:(id)ref;
- (instancetype)init;
@end
/**
* C is a constant.
*/
FOUNDATION_EXPORT const BOOL DocC;
@interface Doc : NSObject
/**
* A group of vars.
*/
+ (double) noDocVar;
+ (void) setNoDocVar:(double)v;
/**
* A specific var.
*/
+ (NSString*) specific;
+ (void) setSpecific:(NSString*)v;
/**
* V is a var.
*/
+ (NSString*) v;
+ (void) setV:(NSString*)v;
@end
/**
* F is a function.
*/
FOUNDATION_EXPORT void DocF(void);
/**
* NewS is a constructor.
*/
FOUNDATION_EXPORT DocS* DocNewS(void);
@class DocI;
/**
* I is an interface.
*/
@interface DocI : NSObject <goSeqRefInterface, DocI> {
}
@property(strong, readonly) id _ref;
- (instancetype)initWithRef:(id)ref;
- (void)im;
@end
#endif