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

Method function

lib/token.cpp:1052–1062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1050}
1051
1052void Token::function(const Function *f)
1053{
1054 mImpl->mFunction = f;
1055 if (f) {
1056 if (f->isLambda())
1057 tokType(eLambda);
1058 else
1059 tokType(eFunction);
1060 } else if (mTokType == eFunction)
1061 tokType(eName);
1062}
1063
1064Token* Token::insertToken(const std::string& tokenStr, bool prepend)
1065{

Callers 15

possiblyAliasedMethod · 0.45
parseFunctionCallMethod · 0.45
argumentSizeMethod · 0.45
assertWithSideEffectsMethod · 0.45
isNotLibraryFunctionMethod · 0.45
isFunctionConstMethod · 0.45
isnoreturnMethod · 0.45
isnotnoreturnMethod · 0.45
checkFileUsageMethod · 0.45

Calls 2

tokTypeFunction · 0.85
isLambdaMethod · 0.80

Tested by

no test coverage detected