MCPcopy Create free account
hub / github.com/KDE/kdevelop / indentingObjCSample

Function indentingObjCSample

plugins/astyle/astyle_plugin.cpp:151–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151QString indentingObjCSample()
152{
153 return QStringLiteral(
154 "#import <objc/Object.h>\n"
155 "\n"
156 "#define foobar(A)\\\n"
157 "\t{Foo();Bar();}\n"
158 "#define anotherFoo(B)\\\n"
159 "\treturn Bar()\n"
160 "\n"
161 "@interface Foo : Bar {\n"
162 "@private\n"
163 "\tid Baz;\n"
164 "}\n"
165 "- (void) init;\n"
166 "- (NSString*) description;\n"
167 "@property (retain) id Baz;\n"
168 "@end\n"
169 "\n"
170 "@interface Foo (Bar)\n"
171 "- (void)bar:(int) foo;\n"
172 "@end\n"
173 "\n"
174 "@implementation Foo (Bar)\n"
175 "\n"
176 "- (void) bar:(int) foo\n"
177 "{\n"
178 "\tswitch (foo) {\n"
179 "case 1:\n"
180 "a += 1;\n"
181 "break;\n"
182 "case 2: {\n"
183 "a += 2;\n"
184 "break;\n"
185 "}\n"
186 "}\n"
187 "if (isFoo) {\n"
188 "bar();\n"
189 "} else {\n"
190 "[anotherBar withFoo:self];\n"
191 "}\n"
192 "}\n"
193 "\n"
194 "@end\n"
195 "int foo()\n"
196 "while (isFoo)\n"
197 "{\n"
198 "\t// ...\n"
199 "\tgoto error;\n"
200 "\t/* .... */\n"
201 "error:\n"
202 "\t//...\n"
203 "}\n"
204 "\n"
205 "fooArray[] = { red,\n"
206 "\tgreen,\n"
207 "\tdarkblue};\n"
208 "fooFunction(barArg1,\n"

Callers 2

previewTextMethod · 0.85
indentingSampleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected