ASSERT_EQUALS("[test.c:1:6]: (style) The function 'f' should have static linkage since it is not used outside of its translation unit. [staticFunction]\n", errout_str());
}
voidunnamedArg()
{
check("struct S {\n"// #12904
" void Type() {}\n"
"};\n"
"[[unused]] void f(Type) {}\n"
"[[unused]] void g(Type, Type) {}\n");
ASSERT_EQUALS("[test.cpp:2:10]: (style) The function 'Type' is never used. [unusedFunction]\n", errout_str());