Skip to content

Commit b0ac098

Browse files
committed
Nit 2
1 parent 8ee9d3d commit b0ac098

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/symboldatabase.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2652,10 +2652,12 @@ Function::Function(const Token *tok,
26522652
hasBody(true);
26532653
}
26542654

2655-
for (tok = tokenDef->previous(); Token::Match(tok, "&|&&|*|::|)|[|(|]|%name%"); tok = tok->previous()) {
2655+
for (tok = tokenDef->previous(); Token::Match(tok, "&|&&|*|::|)|]|%name%"); tok = tok->previous()) {
26562656
// We should set other keywords here as well
26572657
if (tok->str() == "explicit")
26582658
isExplicit(true);
2659+
if (tok->str() == "]" || tok->str() == ")")
2660+
tok = tok->link();
26592661
}
26602662
}
26612663

0 commit comments

Comments
 (0)