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

Function formattingCppSample

plugins/astyle/astyle_plugin.cpp:22–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace {
21
22QString formattingCppSample()
23{
24 return QStringLiteral(
25 "void func(){\n"
26 "\tif(isFoo(a,b))\n"
27 "\tbar(a,b);\n"
28 "if(isFoo)\n"
29 "\ta=bar((b-c)*a,*d--);\n"
30 "if( isFoo( a,b ) )\n"
31 "\tbar(a, b);\n"
32 "if (isFoo) {isFoo=false;cat << isFoo <<endl;}\n"
33 "if(isFoo)DoBar();if (isFoo){\n"
34 "\tbar();\n"
35 "}\n"
36 "\telse if(isBar()){\n"
37 "\tannotherBar();\n"
38 "}\n"
39 "int var = 1;\n"
40 "int *ptr = &var;\n"
41 "int& ref = i;\n"
42 "\n"
43 "QList<int>::const_iterator it = list.begin();\n"
44 "}\n"
45 "namespace A {\n"
46 "namespace B {\n"
47 "class someClass {\n"
48 "void foo() {\n"
49 " if (true) {\n"
50 " func();\n"
51 " } else {\n"
52 " // bla\n"
53 " }\n"
54 "}\n"
55 "};\n"
56 "}\n"
57 "}\n");
58}
59
60QString formattingObjCSample()
61{

Callers 2

previewTextMethod · 0.85
formattingSampleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected