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

Method addArguments

plugins/cmake/parser/cmakelistsparser.cpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void CMakeFunctionDesc::addArguments( const QStringList& args, bool addEvenIfEmpty )
61{
62 if(addEvenIfEmpty && args.isEmpty())
63 arguments += CMakeFunctionArgument();
64 else {
65 arguments.reserve(arguments.size() + args.size());
66 for (const auto& arg : args) {
67 CMakeFunctionArgument cmakeArg(arg);
68 arguments.append(cmakeArg);
69 }
70 }
71}
72
73QString CMakeFunctionDesc::writeBack() const
74{

Callers

nothing calls this directly

Calls 5

isEmptyMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected