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

Function test_BOOST_FOREACH_4

test/cfg/boost.cpp:147–152  ·  view source on GitHub ↗

Check single line usage

Source from the content-addressed store, hash-verified

145
146// Check single line usage
147void test_BOOST_FOREACH_4(std::vector<int> data)
148{
149 BOOST_FOREACH(const int& i, data)
150 // cppcheck-suppress invalidContainerLoop
151 data.clear();
152}
153
154// Container returned as result of a function -> Be quiet
155std::vector<int> get_data();

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected