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

Method qualifiedNameMember

test/testclass.cpp:7846–7857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7844 }
7845
7846 void qualifiedNameMember() { // #10872
7847 const Settings s = settingsBuilder().severity(Severity::style).debugwarnings().library("std.cfg").certainty(Certainty::inconclusive).build();
7848 checkConst("struct data {};\n"
7849 " struct S {\n"
7850 " std::vector<data> std;\n"
7851 " void f();\n"
7852 "};\n"
7853 "void S::f() {\n"
7854 " std::vector<data>::const_iterator end = std.end();\n"
7855 "}\n", s);
7856 ASSERT_EQUALS("[test.cpp:4:10] -> [test.cpp:6:9]: (style, inconclusive) Technically the member function 'S::f' can be const. [functionConst]\n", errout_str());
7857 }
7858
7859#define checkInitializerListOrder(...) checkInitializerListOrder_(__FILE__, __LINE__, __VA_ARGS__)
7860 template<size_t size>

Callers

nothing calls this directly

Calls 3

buildMethod · 0.80
libraryMethod · 0.80
debugwarningsMethod · 0.80

Tested by

no test coverage detected