MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getArgumentVar

Method getArgumentVar

lib/symboldatabase.cpp:4961–4969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4959}
4960
4961const Variable* Function::getArgumentVar(nonneg int num) const
4962{
4963 if (num < argumentList.size()) {
4964 auto it = argumentList.begin();
4965 std::advance(it, num);
4966 return &*it;
4967 }
4968 return nullptr;
4969}
4970
4971
4972//---------------------------------------------------------------------------

Callers 15

possiblyAliasedMethod · 0.80
parseFunctionCallMethod · 0.80
argumentSizeMethod · 0.80
printXmlMethod · 0.80
hasMatchingConstructorFunction · 0.80
findFunctionMethod · 0.80
valueFlowSubFunctionFunction · 0.80

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by 8

functionArgs16Method · 0.64
functionArgs20Method · 0.64
functionArgs21Method · 0.64
functionArgs22Method · 0.64