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

Function functionArgument

plugins/qmakemanager/qmakefilevisitor.cpp:153–162  ·  view source on GitHub ↗

return 1-n for numeric variable, 0 otherwise

Source from the content-addressed store, hash-verified

151
152/// return 1-n for numeric variable, 0 otherwise
153int functionArgument(const QString& var)
154{
155 bool ok;
156 int arg = var.toInt(&ok);
157 if (!ok) {
158 return 0;
159 } else {
160 return arg;
161 }
162}
163
164QStringList QMakeFileVisitor::resolveVariables(const QString& var) const
165{

Callers 1

resolveVariablesMethod · 0.85

Calls 1

toIntMethod · 0.80

Tested by

no test coverage detected