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

Function createCode

plugins/clang/tests/test_duchain.cpp:406–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406QByteArray createCode(const QByteArray& prefix, const int functions)
407{
408 QByteArray code;
409 code += "#ifndef " + prefix + "_H\n";
410 code += "#define " + prefix + "_H\n";
411 for (int i = 0; i < functions; ++i) {
412 code += "void myFunc_" + prefix + "(int arg1, char arg2, const char* arg3);\n";
413 }
414 code += "#endif\n";
415 return code;
416}
417
418void TestDUChain::testIncludeLocking()
419{

Callers 1

testIncludeLockingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected