You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bool newFunc = true; // Is this function already in the database?
635
635
for (std::multimap<std::string, const Function *>::const_iterator i = scope->functionMap.find(tok->str()); i != scope->functionMap.end() && i->first == tok->str(); ++i) {
636
-
if (Function::argsMatch(scope, i->second->argDef, argStart, emptyString, 0)) {
636
+
if (i->second->argsMatch(scope, i->second->argDef, argStart, emptyString, 0)) {
for (std::multimap<std::string, const Function *>::iterator it = scope1->functionMap.find((*tok)->str()); it != scope1->functionMap.end() && it->first == (*tok)->str(); ++it) {
2794
2830
Function * func = const_cast<Function *>(it->second);
2795
2831
if (!func->hasBody()) {
2796
-
if (Function::argsMatch(scope1, func->argDef, (*tok)->next(), path, path_length)) {
2832
+
if (func->argsMatch(scope1, func->argDef, (*tok)->next(), path, path_length)) {
2797
2833
if (func->type == Function::eDestructor && destructor) {
Copy file name to clipboardExpand all lines: test/testclass.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5391,14 +5391,14 @@ class TestClass : public TestFixture {
5391
5391
"int MixerParticipant::GetAudioFrame() {\n"
5392
5392
" return 0;\n"
5393
5393
"}");
5394
-
ASSERT_EQUALS("", errout.str());
5394
+
ASSERT_EQUALS("[test.cpp:4] -> [test.cpp:2]: (performance, inconclusive) Technically the member function 'MixerParticipant::GetAudioFrame' can be static (but you may consider moving to unnamed namespace).\n", errout.str());
5395
5395
5396
5396
checkConst("class MixerParticipant : public MixerParticipant {\n"
5397
5397
" bool InitializeFileReader() {\n"
5398
5398
" printf(\"music\");\n"
5399
5399
" }\n"
5400
5400
"};");
5401
-
ASSERT_EQUALS("", errout.str());
5401
+
ASSERT_EQUALS("[test.cpp:2]: (performance, inconclusive) Technically the member function 'MixerParticipant::InitializeFileReader' can be static (but you may consider moving to unnamed namespace).\n", errout.str());
5402
5402
5403
5403
// Based on an example from SVN source code causing an endless recursion within CheckClass::isConstMemberFunc()
5404
5404
// A more complete example including a template declaration like
0 commit comments