| 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> |
nothing calls this directly
no test coverage detected