Skip to content

Commit a3c9c1d

Browse files
committed
fix #13977
1 parent 01bd86f commit a3c9c1d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/fwdanalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static bool hasGccCompoundStatement(const Token *tok)
7676

7777
static bool nonLocal(const Variable* var, bool deref)
7878
{
79-
return !var || (!var->isLocal() && !var->isArgument()) || (deref && var->isArgument() && var->isPointer()) || var->isStatic() || var->isReference() || var->isExtern();
79+
return !var || (!var->isLocal() && !var->isArgument()) || (deref && var->isArgument() && var->isPointer()) || var->isStatic() || var->isExtern();
8080
}
8181

8282
static bool hasVolatileCastOrVar(const Token *expr)

lib/tokenlist.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,10 +1762,10 @@ static Token * createAstAtToken(Token *tok)
17621762
}
17631763
}
17641764

1765-
if (Token::Match(tok, "%type% %name%|*|&|::") && !Token::Match(tok, "return|new|delete")) {
1765+
if (Token::Match(tok, "%type% %name%|*|&|&&|::") && !Token::Match(tok, "return|new|delete")) {
17661766
int typecount = 0;
17671767
Token *typetok = tok;
1768-
while (Token::Match(typetok, "%type%|::|*|&")) {
1768+
while (Token::Match(typetok, "%type%|::|*|&|&&")) {
17691769
if (typetok->isName() && !Token::simpleMatch(typetok->previous(), "::"))
17701770
typecount++;
17711771
typetok = typetok->next();

0 commit comments

Comments
 (0)