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

Method findFunction55

test/testsymboldatabase.cpp:8693–8701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8691 }
8692
8693 void findFunction55() {
8694 GET_SYMBOL_DB("struct Token { int x; };\n"
8695 "static void f(std::size_t s);\n"
8696 "static void f(const Token* ptr);\n"
8697 "static void f2(const std::vector<Token*>& args) { f(args[0]); }\n");
8698 const Token* f = Token::findsimplematch(tokenizer.tokens(), "f ( args [ 0 ] )");
8699 ASSERT(f && f->function());
8700 ASSERT(Token::simpleMatch(f->function()->tokenDef, "f ( const Token * ptr ) ;"));
8701 }
8702
8703 void findFunction56() { // #13125
8704 GET_SYMBOL_DB("void f(const char* fn, int i, const char e[], const std::string& a);\n"

Callers

nothing calls this directly

Calls 3

findsimplematchFunction · 0.85
simpleMatchFunction · 0.50
functionMethod · 0.45

Tested by

no test coverage detected