11#include "gmock/gmock-matchers.h"
12#include "gmock/gmock.h"
13#include "gtest/gtest.h"
21TEST_F(ObjCMemberwiseInitializerTest, TestAvailability) {
30 ExtraArgs.push_back("-fobjc-runtime=macosx");
31 ExtraArgs.push_back(
"-fobjc-arc");
58 @property(nonatomic) id fi^eld;
65 @property(nonatomic) id pr^op;
73 @property(nonatomic) id prop;
90TEST_F(ObjCMemberwiseInitializerTest, Test) {
92 ExtraArgs.push_back(
"-fobjc-runtime=macosx");
93 ExtraArgs.push_back(
"-fobjc-arc");
95 const char *Input = R
"cpp(
99@property(nonatomic) id prop]];
100@property(nonatomic) id notSelected;
102 const char *
Output = R
"cpp(
106@property(nonatomic) id prop;
107@property(nonatomic) id notSelected;
108- (instancetype)initWithField:(id)field prop:(id)prop;
111 EXPECT_EQ(apply(Input), Output);
115@property(nonatomic, nullable) id somePrettyLongPropertyName;
116@property(nonatomic, nonnull) id someReallyLongPropertyName;
121- (instancetype)init {
128@property(nonatomic, nullable) id somePrettyLongPropertyName;
129@property(nonatomic, nonnull) id someReallyLongPropertyName;
130- (instancetype)initWithSomePrettyLongPropertyName:(nullable id)somePrettyLongPropertyName someReallyLongPropertyName:(nonnull id)someReallyLongPropertyName;
136- (instancetype)init {
140- (instancetype)initWithSomePrettyLongPropertyName:(nullable id)somePrettyLongPropertyName someReallyLongPropertyName:(nonnull id)someReallyLongPropertyName {
143 _somePrettyLongPropertyName = somePrettyLongPropertyName;
144 _someReallyLongPropertyName = someReallyLongPropertyName;
150 EXPECT_EQ(apply(Input), Output);
#define TWEAK_TEST(TweakID)
#define EXPECT_AVAILABLE(MarkedCode)
#define EXPECT_UNAVAILABLE(MarkedCode)
TEST_F(BackgroundIndexTest, NoCrashOnErrorFile)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//