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

Method vardecl14

test/testtokenize.cpp:2561–2565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2559 }
2560
2561 void vardecl14() {
2562 const Settings s = settingsBuilder(settings1).cpp(Standards::CPP03).build();
2563 const char code[] = "::std::tr1::shared_ptr<int> pNum1, pNum2;\n";
2564 ASSERT_EQUALS(":: std :: tr1 :: shared_ptr < int > pNum1 ; :: std :: tr1 :: shared_ptr < int > pNum2 ;", tokenizeAndStringify(code, s, true, false));
2565 }
2566
2567 void vardecl15() {
2568 const char code[] = "const char x[] = \"foo\", y[] = \"bar\";\n";

Callers

nothing calls this directly

Calls 2

buildMethod · 0.80
cppMethod · 0.80

Tested by

no test coverage detected