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

Method uninitvar_configuration

test/testuninitvar.cpp:5510–5521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5508 }
5509
5510 void uninitvar_configuration() {
5511 const Settings s = settingsBuilder(settings).checkLibrary().build();
5512
5513 checkUninitVar("int f() {\n"
5514 " int i, j;\n"
5515 " do {\n"
5516 " i = 0;\n"
5517 " return i;\n"
5518 " } while (0);\n"
5519 "}\n", s);
5520 ASSERT_EQUALS("", errout_str());
5521 }
5522
5523 void checkExpr() {
5524 checkUninitVar("struct AB { int a; int b; };\n"

Callers

nothing calls this directly

Calls 2

buildMethod · 0.80
checkLibraryMethod · 0.80

Tested by

no test coverage detected