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

Method lineNumber

test/testunusedfunctions.cpp:614–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612 }
613
614 void lineNumber() {
615 check("void foo();\n"
616 "void bar() {}\n"
617 "int main() {}");
618 ASSERT_EQUALS("[test.cpp:2:6]: (style) The function 'bar' is never used. [unusedFunction]\n", errout_str());
619 }
620
621 void ignore_declaration() {
622 check("void f();\n"

Callers 2

unhandledElementFunction · 0.80
mandatoryAttibuteMissingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected