astyle formatting
This commit is contained in:
parent
096b22c46e
commit
fd3f384e24
|
@ -300,8 +300,7 @@ void CheckAutoVariables::returnReference()
|
||||||
|
|
||||||
if (var1 && var1->isLocal() && !var1->isStatic()) {
|
if (var1 && var1->isLocal() && !var1->isStatic()) {
|
||||||
// If reference variable is used, check what it references
|
// If reference variable is used, check what it references
|
||||||
if (Token::Match(var1->nameToken()->previous(), "& %var% ="))
|
if (Token::Match(var1->nameToken()->previous(), "& %var% =")) {
|
||||||
{
|
|
||||||
const Token *tok3 = var1->nameToken()->tokAt(2);
|
const Token *tok3 = var1->nameToken()->tokAt(2);
|
||||||
if (!Token::Match(tok3, "%var% [;.]"))
|
if (!Token::Match(tok3, "%var% [;.]"))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue