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

Function formattingObjCSample

plugins/astyle/astyle_plugin.cpp:60–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60QString formattingObjCSample()
61{
62 return QStringLiteral(
63 "void func(){\n"
64 "\tif(isFoo(a,b))\n"
65 "\tbar(a,b);\n"
66 "if(isFoo)\n"
67 "\ta=bar((b-c)*a,*d--);\n"
68 "if( isFoo( a,b ) )\n"
69 "\tbar(a, b);\n"
70 "if (isFoo) {isFoo=false;cat << isFoo <<endl;}\n"
71 "if(isFoo)DoBar();if (isFoo){\n"
72 "\tbar();\n"
73 "}\n"
74 "\telse if(isBar()){\n"
75 "\tannotherBar();\n"
76 "}\n"
77 "int var = 1;\n"
78 "int *ptr = &var;\n"
79 "\n"
80 "}\n"
81 "@implementation someClass \n"
82 "+ (someClass*) someClassWithFoo:(int)foo\n"
83 "{\n"
84 " someClass *this;\n"
85 " if (foo) {\n"
86 " this = [[someClass alloc] initWith:foo];\n"
87 " } else {\n"
88 " // bla\n"
89 " }\n"
90 " return self;\n"
91 "}\n"
92 "@end\n");
93}
94
95QString indentingCppSample()
96{

Callers 2

previewTextMethod · 0.85
formattingSampleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected