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

Method functionArgs14

test/testsymboldatabase.cpp:2948–2956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2946 }
2947
2948 void functionArgs14() { // #7697
2949 GET_SYMBOL_DB("void f(int (&a)[10], int (&b)[10]);");
2950 (void)db;
2951 const Function *func = tokenizer.tokens()->next()->function();
2952 ASSERT_EQUALS(true, func != nullptr);
2953 ASSERT_EQUALS(2, func ? func->argCount() : 0);
2954 ASSERT_EQUALS(0, func ? func->initializedArgCount() : 1);
2955 ASSERT_EQUALS(2, func ? func->minArgCount() : 0);
2956 }
2957
2958 void functionArgs15() { // #7159
2959 const char code[] =

Callers

nothing calls this directly

Calls 2

nextMethod · 0.80
functionMethod · 0.45

Tested by

no test coverage detected