This commit is contained in:
Sébastien Debrard 2011-01-22 17:47:17 +01:00
commit 2ed7d536a5
1 changed files with 4 additions and 5 deletions

View File

@ -583,11 +583,6 @@ void CheckClass::privateFunctions()
if (Token::findmatch(_tokenizer->tokens(), "; __property ;"))
return;
// skip checking if there are friends
// Todo: check if each class has friends
if (Token::findmatch(_tokenizer->tokens(), "friend"))
return;
// #2407 calls from operator() is not detected
// TODO: Don't bailout. Detect the call.
if (Token::findmatch(_tokenizer->tokens(), "operator ( )"))
@ -609,6 +604,10 @@ void CheckClass::privateFunctions()
if (!scope->derivedFrom.empty())
continue;
// skip checking if there are friends
if (!scope->friendList.empty())
continue;
// Locate some class
const Token *tok1 = scope->classDef;