#5782 Endless recursion in CheckClass::checkReturnPtrThis(). Break endless recursion by remembering the callstack (missing header file)

This commit is contained in:
Alexander Mai 2014-05-11 12:27:43 +02:00
parent b139ae3209
commit 6fe2f8b01b
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ private:
} }
// operatorEqRetRefThis helper function // operatorEqRetRefThis helper function
void checkReturnPtrThis(const Scope *scope, const Function *func, const Token *tok, const Token *last); void checkReturnPtrThis(const Scope *scope, const Function *func, const Token *tok, const Token *last, std::set<const Function*>* analyzedFunctions=nullptr);
// operatorEqToSelf helper functions // operatorEqToSelf helper functions
bool hasAllocation(const Function *func, const Scope* scope) const; bool hasAllocation(const Function *func, const Scope* scope) const;