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

Function getBuiltinLibraryFunction

lib/programmemory.cpp:1262–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1260}
1261
1262static BuiltinLibraryFunction getBuiltinLibraryFunction(const std::string& name)
1263{
1264 static const std::unordered_map<std::string, BuiltinLibraryFunction> functions = createBuiltinLibraryFunctions();
1265 auto it = functions.find(name);
1266 if (it == functions.end())
1267 return nullptr;
1268 return it->second;
1269}
1270static bool TokenExprIdCompare(const Token* tok1, const Token* tok2) {
1271 return tok1->exprId() < tok2->exprId();
1272}

Callers 1

executeImplMethod · 0.85

Calls 3

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected